diff options
Diffstat (limited to 'Editor/EditorMain.cpp')
-rw-r--r-- | Editor/EditorMain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Editor/EditorMain.cpp b/Editor/EditorMain.cpp index 95937a7..7ca90ad 100644 --- a/Editor/EditorMain.cpp +++ b/Editor/EditorMain.cpp @@ -15,7 +15,7 @@ void ErrorHandle(cc8* msg) log_error(std::string("[Lua] ") + msg);
}
-void OnRegisterFactoryClass(LuaBind::State& state, int cls, std::string clsName, std::string pkgName)
+void OnRegisterNativeClass(LuaBind::State& state, int cls, std::string clsName, std::string pkgName)
{
// 填充类型的元数据
lua_newtable(state);
@@ -35,7 +35,7 @@ void InitLuaState() vm.Setup();
vm.OpenLibs();
- LuaBind::onRegisterFactoryClass = OnRegisterFactoryClass;
+ LuaBind::onRegisterNativeClass = OnRegisterNativeClass;
if (!SetupGameLabEditorScripting(vm.GetMainThread()))
{
|