mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
Enhance pointer type conversion
This commit is contained in:
@@ -400,7 +400,7 @@ jsval sptrackentry_to_jsval(JSContext* cx, spTrackEntry& v)
|
||||
ok &= JS_SetProperty(cx, entry, "animationLast", val);
|
||||
val.set(DOUBLE_TO_JSVAL(v.nextAnimationLast));
|
||||
ok &= JS_SetProperty(cx, entry, "nextAnimationLast", val);
|
||||
val.set(spanimation_to_jsval(cx, *v.animation));
|
||||
val.set(v.animation == nullptr ? JSVAL_NULL : spanimation_to_jsval(cx, *v.animation));
|
||||
ok &= JS_SetProperty(cx, entry, "animation", val);
|
||||
|
||||
if (ok)
|
||||
|
||||
Submodule native/tools/bindings-generator updated: 4eea234913...9fff9d2ffe
Reference in New Issue
Block a user