From 347e57aef4bb96e5603b192cb4229798a59363b0 Mon Sep 17 00:00:00 2001 From: johnche Date: Thu, 14 Apr 2022 19:35:27 +0800 Subject: [PATCH] =?UTF-8?q?[unreal]=E7=A6=81=E7=94=A8=E9=9D=99=E6=80=81wra?= =?UTF-8?q?p=E7=9A=84=E5=AD=97=E6=AE=B5cache=E5=8A=9F=E8=83=BD=EF=BC=8Cfix?= =?UTF-8?q?=20https://github.com/Tencent/puerts/issues/763?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unreal/Puerts/Source/JsEnv/Private/DataTransfer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unreal/Puerts/Source/JsEnv/Private/DataTransfer.cpp b/unreal/Puerts/Source/JsEnv/Private/DataTransfer.cpp index 664753bbfa..8447ab5384 100644 --- a/unreal/Puerts/Source/JsEnv/Private/DataTransfer.cpp +++ b/unreal/Puerts/Source/JsEnv/Private/DataTransfer.cpp @@ -63,7 +63,7 @@ v8::Local DataTransfer::FindOrAddObject( v8::Local DataTransfer::FindOrAddStruct( v8::Isolate* Isolate, v8::Local Context, UScriptStruct* ScriptStruct, void* Ptr, bool PassByPointer) { - return FV8Utils::IsolateData(Isolate)->FindOrAddStruct(Isolate, Context, ScriptStruct, Ptr, PassByPointer); + return FV8Utils::IsolateData(Isolate)->FindOrAddStruct(Isolate, Context, ScriptStruct, Ptr, PassByPointer, true); } bool DataTransfer::IsInstanceOf(v8::Isolate* Isolate, UStruct* Struct, v8::Local JsObject)