mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 18:42:40 +08:00
Merge pull request #581 from DavidDeSimone/spine-func
Adding missing spine property access in jsb for "loop"
This commit is contained in:
@@ -445,6 +445,8 @@ jsval sptrackentry_to_jsval(JSContext* cx, spTrackEntry& v)
|
||||
{
|
||||
JS::RootedValue val(cx, DOUBLE_TO_JSVAL(v.delay));
|
||||
bool ok = JS_SetProperty(cx, entry, "delay", val);
|
||||
val.set(DOUBLE_TO_JSVAL(v.loop));
|
||||
ok &= JS_SetProperty(cx, entry, "loop", val);
|
||||
val.set(DOUBLE_TO_JSVAL(v.trackIndex));
|
||||
ok &= JS_SetProperty(cx, entry, "trackIndex", val);
|
||||
val.set(DOUBLE_TO_JSVAL(v.trackTime));
|
||||
|
||||
Reference in New Issue
Block a user