diff --git a/cocos/physics3d/CCPhysics3DShape.h b/cocos/physics3d/CCPhysics3DShape.h index 2ec498d84e..095469e49a 100644 --- a/cocos/physics3d/CCPhysics3DShape.h +++ b/cocos/physics3d/CCPhysics3DShape.h @@ -144,7 +144,7 @@ CC_CONSTRUCTOR_ACCESS: , const void* heightfieldData, float heightScale , float minHeight, float maxHeight , bool useFloatDatam, bool flipQuadEdges - , bool useDiamondSubdivision = false); + , bool useDiamondSubdivision); bool initCompoundShape(const std::vector> &shapes); protected: diff --git a/cocos/scripting/js-bindings/manual/physics3d/jsb_cocos2dx_physics3d_manual.cpp b/cocos/scripting/js-bindings/manual/physics3d/jsb_cocos2dx_physics3d_manual.cpp index 451a9ed791..1f8e319a04 100644 --- a/cocos/scripting/js-bindings/manual/physics3d/jsb_cocos2dx_physics3d_manual.cpp +++ b/cocos/scripting/js-bindings/manual/physics3d/jsb_cocos2dx_physics3d_manual.cpp @@ -322,7 +322,7 @@ bool js_cocos2dx_physics3d_Physics3dShape_initHeightfield(JSContext *cx, uint32_ bool ret = false; if (argc == 8) - ret = cobj->initHeightfield(arg0, arg1, &arg2[0], arg3, arg4, arg5, arg6, arg7); + ret = cobj->initHeightfield(arg0, arg1, &arg2[0], arg3, arg4, arg5, arg6, arg7, false); else if (argc == 9) ret = cobj->initHeightfield(arg0, arg1, &arg2[0], arg3, arg4, arg5, arg6, arg7, arg8);