diff options
| author | Hein-Pieter van Braam | 2017-02-13 12:47:24 +0100 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2017-02-13 12:50:02 +0100 |
| commit | 411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291 (patch) | |
| tree | a3c28058efb7a80faed23bff683fe0931859ed52 /scene/3d/baked_light_instance.cpp | |
| parent | bf64df4427836a4e7a5060ee11d75eea6da79b14 (diff) | |
| download | godot-411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291.tar.gz godot-411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291.tar.zst godot-411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291.zip | |
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/3d/baked_light_instance.cpp')
| -rw-r--r-- | scene/3d/baked_light_instance.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/scene/3d/baked_light_instance.cpp b/scene/3d/baked_light_instance.cpp index 884ac7ec9..e20d8faaf 100644 --- a/scene/3d/baked_light_instance.cpp +++ b/scene/3d/baked_light_instance.cpp @@ -1718,23 +1718,23 @@ void BakedLight::_debug_mesh_light() { void BakedLight::_bind_methods() { - ClassDB::bind_method(_MD("set_cell_subdiv","steps"),&BakedLight::set_cell_subdiv); - ClassDB::bind_method(_MD("get_cell_subdiv"),&BakedLight::get_cell_subdiv); + ClassDB::bind_method(D_METHOD("set_cell_subdiv","steps"),&BakedLight::set_cell_subdiv); + ClassDB::bind_method(D_METHOD("get_cell_subdiv"),&BakedLight::get_cell_subdiv); - ClassDB::bind_method(_MD("bake"),&BakedLight::bake); + ClassDB::bind_method(D_METHOD("bake"),&BakedLight::bake); ClassDB::set_method_flags(get_class_static(),_scs_create("bake"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); - ClassDB::bind_method(_MD("bake_lights"),&BakedLight::bake_lights); + ClassDB::bind_method(D_METHOD("bake_lights"),&BakedLight::bake_lights); ClassDB::set_method_flags(get_class_static(),_scs_create("bake_lights"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); - ClassDB::bind_method(_MD("bake_radiance"),&BakedLight::bake_radiance); + ClassDB::bind_method(D_METHOD("bake_radiance"),&BakedLight::bake_radiance); ClassDB::set_method_flags(get_class_static(),_scs_create("bake_radiance"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); - ClassDB::bind_method(_MD("debug_mesh_albedo"),&BakedLight::_debug_mesh_albedo); + ClassDB::bind_method(D_METHOD("debug_mesh_albedo"),&BakedLight::_debug_mesh_albedo); ClassDB::set_method_flags(get_class_static(),_scs_create("debug_mesh_albedo"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); - ClassDB::bind_method(_MD("debug_mesh_light"),&BakedLight::_debug_mesh_light); + ClassDB::bind_method(D_METHOD("debug_mesh_light"),&BakedLight::_debug_mesh_light); ClassDB::set_method_flags(get_class_static(),_scs_create("debug_mesh_light"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); ADD_PROPERTY(PropertyInfo(Variant::INT,"cell_subdiv"),"set_cell_subdiv","get_cell_subdiv"); @@ -1797,11 +1797,11 @@ DVector<Face3> BakedLightSampler::get_faces(uint32_t p_usage_flags) const { void BakedLightSampler::_bind_methods() { - ClassDB::bind_method(_MD("set_param","param","value"),&BakedLightSampler::set_param); - ClassDB::bind_method(_MD("get_param","param"),&BakedLightSampler::get_param); + ClassDB::bind_method(D_METHOD("set_param","param","value"),&BakedLightSampler::set_param); + ClassDB::bind_method(D_METHOD("get_param","param"),&BakedLightSampler::get_param); - ClassDB::bind_method(_MD("set_resolution","resolution"),&BakedLightSampler::set_resolution); - ClassDB::bind_method(_MD("get_resolution"),&BakedLightSampler::get_resolution); + ClassDB::bind_method(D_METHOD("set_resolution","resolution"),&BakedLightSampler::set_resolution); + ClassDB::bind_method(D_METHOD("get_resolution"),&BakedLightSampler::get_resolution); BIND_CONSTANT( PARAM_RADIUS ); |
