From c0a018d1ca170964d9e6ca4e1d02631f917abbe0 Mon Sep 17 00:00:00 2001 From: johnche Date: Tue, 3 Dec 2024 19:44:49 +0800 Subject: [PATCH] =?UTF-8?q?[unity]=E6=94=AF=E6=8C=81=E4=BB=85setter?= =?UTF-8?q?=E7=9A=84=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unreal/Puerts/Source/JsEnv/Private/CppObjectMapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unreal/Puerts/Source/JsEnv/Private/CppObjectMapper.cpp b/unreal/Puerts/Source/JsEnv/Private/CppObjectMapper.cpp index 787ac45776..29a0642fa1 100644 --- a/unreal/Puerts/Source/JsEnv/Private/CppObjectMapper.cpp +++ b/unreal/Puerts/Source/JsEnv/Private/CppObjectMapper.cpp @@ -169,7 +169,7 @@ v8::Local FCppObjectMapper::GetTemplateOfClass(v8::Isolate Template->InstanceTemplate()->SetInternalFieldCount(4); JSPropertyInfo* PropertyInfo = ClassDefinition->Properties; - while (PropertyInfo && PropertyInfo->Name && PropertyInfo->Getter) + while (PropertyInfo && PropertyInfo->Name) { v8::PropertyAttribute PropertyAttribute = v8::DontDelete; if (!PropertyInfo->Setter) @@ -187,7 +187,7 @@ v8::Local FCppObjectMapper::GetTemplateOfClass(v8::Isolate } PropertyInfo = ClassDefinition->Variables; - while (PropertyInfo && PropertyInfo->Name && PropertyInfo->Getter) + while (PropertyInfo && PropertyInfo->Name) { v8::PropertyAttribute PropertyAttribute = v8::DontDelete; if (!PropertyInfo->Setter)