mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Rename the _MD macro to D_METHOD
This new name also makes its purpose a little clearer This is a step towards fixing #56
This commit is contained in:
@@ -294,16 +294,16 @@ void MeshInstance::_mesh_changed() {
|
||||
|
||||
void MeshInstance::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(_MD("set_mesh","mesh:Mesh"),&MeshInstance::set_mesh);
|
||||
ClassDB::bind_method(_MD("get_mesh:Mesh"),&MeshInstance::get_mesh);
|
||||
ClassDB::bind_method(_MD("set_skeleton_path","skeleton_path:NodePath"),&MeshInstance::set_skeleton_path);
|
||||
ClassDB::bind_method(_MD("get_skeleton_path:NodePath"),&MeshInstance::get_skeleton_path);
|
||||
ClassDB::bind_method(D_METHOD("set_mesh","mesh:Mesh"),&MeshInstance::set_mesh);
|
||||
ClassDB::bind_method(D_METHOD("get_mesh:Mesh"),&MeshInstance::get_mesh);
|
||||
ClassDB::bind_method(D_METHOD("set_skeleton_path","skeleton_path:NodePath"),&MeshInstance::set_skeleton_path);
|
||||
ClassDB::bind_method(D_METHOD("get_skeleton_path:NodePath"),&MeshInstance::get_skeleton_path);
|
||||
|
||||
ClassDB::bind_method(_MD("create_trimesh_collision"),&MeshInstance::create_trimesh_collision);
|
||||
ClassDB::bind_method(D_METHOD("create_trimesh_collision"),&MeshInstance::create_trimesh_collision);
|
||||
ClassDB::set_method_flags("MeshInstance","create_trimesh_collision",METHOD_FLAGS_DEFAULT);
|
||||
ClassDB::bind_method(_MD("create_convex_collision"),&MeshInstance::create_convex_collision);
|
||||
ClassDB::bind_method(D_METHOD("create_convex_collision"),&MeshInstance::create_convex_collision);
|
||||
ClassDB::set_method_flags("MeshInstance","create_convex_collision",METHOD_FLAGS_DEFAULT);
|
||||
ClassDB::bind_method(_MD("_mesh_changed"),&MeshInstance::_mesh_changed);
|
||||
ClassDB::bind_method(D_METHOD("_mesh_changed"),&MeshInstance::_mesh_changed);
|
||||
|
||||
ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "mesh", PROPERTY_HINT_RESOURCE_TYPE, "Mesh" ), "set_mesh", "get_mesh");
|
||||
ADD_PROPERTY( PropertyInfo (Variant::NODE_PATH, "skeleton"), "set_skeleton_path", "get_skeleton_path");
|
||||
|
||||
Reference in New Issue
Block a user