diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-02-13 12:47:24 +0100 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-02-13 12:50:02 +0100 |
commit | 411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291 (patch) | |
tree | a3c28058efb7a80faed23bff683fe0931859ed52 /scene/resources/multimesh.cpp | |
parent | bf64df4427836a4e7a5060ee11d75eea6da79b14 (diff) | |
download | redot-engine-411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291.tar.gz |
Rename the _MD macro to D_METHOD
This new name also makes its purpose a little clearer
This is a step towards fixing #56
Diffstat (limited to 'scene/resources/multimesh.cpp')
-rw-r--r-- | scene/resources/multimesh.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/scene/resources/multimesh.cpp b/scene/resources/multimesh.cpp index d72264c951..69ef3f18a6 100644 --- a/scene/resources/multimesh.cpp +++ b/scene/resources/multimesh.cpp @@ -211,26 +211,26 @@ MultiMesh::TransformFormat MultiMesh::get_transform_format() const{ void MultiMesh::_bind_methods() { - ClassDB::bind_method(_MD("set_mesh","mesh:Mesh"),&MultiMesh::set_mesh); - ClassDB::bind_method(_MD("get_mesh:Mesh"),&MultiMesh::get_mesh); - ClassDB::bind_method(_MD("set_color_format","format"),&MultiMesh::set_color_format); - ClassDB::bind_method(_MD("get_color_format"),&MultiMesh::get_color_format); - ClassDB::bind_method(_MD("set_transform_format","format"),&MultiMesh::set_transform_format); - ClassDB::bind_method(_MD("get_transform_format"),&MultiMesh::get_transform_format); - - ClassDB::bind_method(_MD("set_instance_count","count"),&MultiMesh::set_instance_count); - ClassDB::bind_method(_MD("get_instance_count"),&MultiMesh::get_instance_count); - ClassDB::bind_method(_MD("set_instance_transform","instance","transform"),&MultiMesh::set_instance_transform); - ClassDB::bind_method(_MD("get_instance_transform","instance"),&MultiMesh::get_instance_transform); - ClassDB::bind_method(_MD("set_instance_color","instance","color"),&MultiMesh::set_instance_color); - ClassDB::bind_method(_MD("get_instance_color","instance"),&MultiMesh::get_instance_color); - ClassDB::bind_method(_MD("get_aabb"),&MultiMesh::get_aabb); - - - ClassDB::bind_method(_MD("_set_transform_array"),&MultiMesh::_set_transform_array); - ClassDB::bind_method(_MD("_get_transform_array"),&MultiMesh::_get_transform_array); - ClassDB::bind_method(_MD("_set_color_array"),&MultiMesh::_set_color_array); - ClassDB::bind_method(_MD("_get_color_array"),&MultiMesh::_get_color_array); + ClassDB::bind_method(D_METHOD("set_mesh","mesh:Mesh"),&MultiMesh::set_mesh); + ClassDB::bind_method(D_METHOD("get_mesh:Mesh"),&MultiMesh::get_mesh); + ClassDB::bind_method(D_METHOD("set_color_format","format"),&MultiMesh::set_color_format); + ClassDB::bind_method(D_METHOD("get_color_format"),&MultiMesh::get_color_format); + ClassDB::bind_method(D_METHOD("set_transform_format","format"),&MultiMesh::set_transform_format); + ClassDB::bind_method(D_METHOD("get_transform_format"),&MultiMesh::get_transform_format); + + ClassDB::bind_method(D_METHOD("set_instance_count","count"),&MultiMesh::set_instance_count); + ClassDB::bind_method(D_METHOD("get_instance_count"),&MultiMesh::get_instance_count); + ClassDB::bind_method(D_METHOD("set_instance_transform","instance","transform"),&MultiMesh::set_instance_transform); + ClassDB::bind_method(D_METHOD("get_instance_transform","instance"),&MultiMesh::get_instance_transform); + ClassDB::bind_method(D_METHOD("set_instance_color","instance","color"),&MultiMesh::set_instance_color); + ClassDB::bind_method(D_METHOD("get_instance_color","instance"),&MultiMesh::get_instance_color); + ClassDB::bind_method(D_METHOD("get_aabb"),&MultiMesh::get_aabb); + + + ClassDB::bind_method(D_METHOD("_set_transform_array"),&MultiMesh::_set_transform_array); + ClassDB::bind_method(D_METHOD("_get_transform_array"),&MultiMesh::_get_transform_array); + ClassDB::bind_method(D_METHOD("_set_color_array"),&MultiMesh::_set_color_array); + ClassDB::bind_method(D_METHOD("_get_color_array"),&MultiMesh::_get_color_array); ADD_PROPERTY(PropertyInfo(Variant::INT,"color_format",PROPERTY_HINT_ENUM,"None,Byte,Float"), "set_color_format", "get_color_format"); |