File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Plugins/UnLua/Source/UnLua/Private Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,18 @@ namespace UnLua
55
55
}
56
56
}
57
57
58
+ const auto OriginalFunctionFlags = Function->FunctionFlags ;
59
+ Function->FunctionFlags &= (~EFunctionFlags::FUNC_Native);
60
+
58
61
FObjectDuplicationParameters DuplicationParams (Function, OverridesClass);
59
62
DuplicationParams.InternalFlagMask &= ~EInternalObjectFlags::Native;
60
63
DuplicationParams.DestName = NewName;
61
64
DuplicationParams.DestClass = ULuaFunction::StaticClass ();
62
65
LuaFunction = static_cast <ULuaFunction*>(StaticDuplicateObjectEx (DuplicationParams));
63
66
67
+ Function->FunctionFlags = OriginalFunctionFlags;
68
+ LuaFunction->FunctionFlags = OriginalFunctionFlags;
69
+
64
70
LuaFunction->Next = OverridesClass->Children ;
65
71
OverridesClass->Children = LuaFunction;
66
72
You can’t perform that action at this time.
0 commit comments