Browse Source

Fixed spline binding.[ci skip]

aster2013 11 years ago
parent
commit
ce41b87aae
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/Engine/LuaScript/pkgs/Core/Spline.pkg

+ 2 - 0
Source/Engine/LuaScript/pkgs/Core/Spline.pkg

@@ -10,6 +10,8 @@ class Spline
     Spline();
     Spline(InterpolationMode mode);
     Spline(const Spline& rhs);
+    // When export constructor, the destructor must export also. otherwise Lua will not collect the oject.
+    ~Spline();
     
     void operator = (const Spline& rhs);
     bool operator == (const Spline& rhs) const;