fix gc bug
This commit is contained in:
3
model.c
3
model.c
@@ -538,7 +538,8 @@ JSValue js_model_pack_vertices(JSContext *js, JSValue this_val, int argc, JSValu
|
||||
|
||||
JS_FRAME(js);
|
||||
JS_ROOT(result, JS_NewObject(js));
|
||||
JS_SetPropertyStr(js, result.val, "data", js_new_blob_stoned_copy(js, packed, total_size));
|
||||
JSValue blob = js_new_blob_stoned_copy(js, packed, total_size);
|
||||
JS_SetPropertyStr(js, result.val, "data", blob);
|
||||
JS_SetPropertyStr(js, result.val, "stride", JS_NewInt32(js, stride));
|
||||
JS_SetPropertyStr(js, result.val, "vertex_count", JS_NewInt32(js, vertex_count));
|
||||
JS_SetPropertyStr(js, result.val, "skinned", JS_NewBool(js, skinned));
|
||||
|
||||
Reference in New Issue
Block a user