Browse Source

fix: compilation error caused by missing "inline" keyword. (#1709)

X.ZhaoMa 4 years ago
parent
commit
70d2abaa53
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/igl/embree/EmbreeIntersector.cpp

+ 2 - 2
include/igl/embree/EmbreeIntersector.cpp

@@ -119,7 +119,7 @@ IGL_INLINE void igl::embree::EmbreeIntersector::init(
   initialized = true;
 }
 
-igl::embree::EmbreeIntersector
+IGL_INLINE igl::embree::EmbreeIntersector
 ::~EmbreeIntersector()
 {
   if(initialized)
@@ -127,7 +127,7 @@ igl::embree::EmbreeIntersector
   igl::embree::EmbreeDevice::release_device();
 }
 
-void igl::embree::EmbreeIntersector::deinit()
+IGL_INLINE void igl::embree::EmbreeIntersector::deinit()
 {
   if(device && scene)
   {