@@ -87,7 +87,7 @@ static GlobalBufferAutoRelease Dummy;
8787#endif
8888
8989FFunctionTranslator::FFunctionTranslator (UFunction* InFunction, bool IsDelegate)
90- : ArgumentDefaultValues(nullptr ) // 初始化默认参数缓存指针,确保函数刷新时可以安全清理旧缓存
90+ : ArgumentDefaultValues(nullptr ) // 初始化默认参数缓存指针,确保函数刷新时可以安全清理旧缓存
9191{
9292 Init (InFunction, IsDelegate);
9393}
@@ -116,7 +116,7 @@ void FFunctionTranslator::Init(UFunction* InFunction, bool IsDelegate)
116116 IsStatic = InFunction->HasAnyFunctionFlags (FUNC_Static);
117117 }
118118 Arguments.clear ();
119- Return.reset (); // 函数签名可能在重编译后改变,避免继续持有旧返回值属性转换器
119+ Return.reset (); // 函数签名可能在重编译后改变,避免继续持有旧返回值属性转换器
120120
121121 SkipWorldContextInArg0 = false ;
122122 for (TFieldIterator<PropertyMacro> It (InFunction); It && (It->PropertyFlags & CPF_Parm); ++It)
@@ -138,7 +138,7 @@ void FFunctionTranslator::Init(UFunction* InFunction, bool IsDelegate)
138138 }
139139 }
140140
141- if (ArgumentDefaultValues) // 蓝图重编译后会复用函数转换器, 重新初始化前需要释放旧函数的默认参数缓存
141+ if (ArgumentDefaultValues) // 蓝图重编译后会复用函数转换器, 重新初始化前需要释放旧函数的默认参数缓存
142142 {
143143 FMemory::Free (ArgumentDefaultValues);
144144 }
@@ -264,9 +264,9 @@ void FFunctionTranslator::Call(
264264 {
265265 CallFunction = CallObject->GetClass ()->FindFunctionByName (Function->GetFName ());
266266 }
267-
267+
268268 UFunction* CallFunctionPtr = CallFunction.Get ();
269-
269+
270270#if WITH_EDITOR
271271 // Blueprint 重编译后,旧 Class 会被标记为 CLASS_NewerVersionExists。
272272 // 使用 ClassFlags 判断可以避免每次调用都检查 TRASHCLASS_、REINST_ 等名称前缀。
@@ -275,31 +275,31 @@ void FFunctionTranslator::Call(
275275 {
276276 UFunction* RefreshedFunction = CallObject->GetClass ()->FindFunctionByName (FunctionName);
277277 UClass* RefreshedOwnerClass = ::IsValid (RefreshedFunction) ? RefreshedFunction->GetOuterUClass () : nullptr ;
278-
278+
279279 if (!RefreshedOwnerClass || RefreshedOwnerClass->HasAnyClassFlags (CLASS_NewerVersionExists))
280280 {
281281 FV8Utils::ThrowException (Isolate, " failed to refresh function after class recompilation" );
282282 return ;
283283 }
284-
284+
285285 Init (RefreshedFunction, false );
286286 CallFunctionPtr = RefreshedFunction;
287287 }
288288#endif
289-
289+
290290 if (!CallFunctionPtr)
291291 {
292292 FV8Utils::ThrowException (Isolate, " access an invalid function" );
293293 return ;
294294 }
295-
295+
296296 // 参数缓冲区必须在函数刷新之后分配,确保使用新的 ParamsBufferSize。
297297#if defined(USE_GLOBAL_PARAMS_BUFFER)
298298 void * Params = Buffer;
299299#else
300300 void * Params = ParamsBufferSize > 0 ? FMemory_Alloca (ParamsBufferSize) : nullptr ;
301301#endif
302-
302+
303303 if ((CallFunctionPtr->FunctionFlags & FUNC_Native) && !(CallFunctionPtr->FunctionFlags & FUNC_Net) &&
304304 !CallFunctionPtr->HasAnyFunctionFlags (FUNC_UbergraphFunction))
305305 {
0 commit comments