mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 18:42:40 +08:00
Merge pull request #586 from CocosRobot/update_js_bindings_1490783010
[ci skip][AUTO]: updating jsbinding automatically
This commit is contained in:
@@ -808,18 +808,6 @@ syncNode : function (
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setFixtureNext
|
||||
* @param {b2Fixture} arg0
|
||||
* @param {b2Fixture} arg1
|
||||
*/
|
||||
setFixtureNext : function (
|
||||
b2fixture,
|
||||
b2fixture
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method removeB2Body
|
||||
* @param {b2Body} arg0
|
||||
|
||||
@@ -2334,11 +2334,7 @@ bool js_creator_PhysicsRayCastCallback_getFractions(JSContext *cx, uint32_t argc
|
||||
if (argc == 0) {
|
||||
std::vector<float, std::allocator<float> >& ret = cobj->getFractions();
|
||||
JS::RootedValue jsret(cx);
|
||||
if (ret) {
|
||||
jsret = OBJECT_TO_JSVAL(js_get_or_create_jsobject<std::vector<float, std::allocator<float> >&>(cx, (std::vector<float, std::allocator<float> >&)ret));
|
||||
} else {
|
||||
jsret = JSVAL_NULL;
|
||||
};
|
||||
jsret = std_vector_float_to_jsval(cx, ret);
|
||||
args.rval().set(jsret);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user