You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
This commit is contained in:
@@ -43,7 +43,7 @@ void Particles2DEditorPlugin::edit(Object *p_object) {
|
||||
|
||||
bool Particles2DEditorPlugin::handles(Object *p_object) const {
|
||||
|
||||
return p_object->is_type("Particles2D");
|
||||
return p_object->is_class("Particles2D");
|
||||
}
|
||||
|
||||
void Particles2DEditorPlugin::make_visible(bool p_visible) {
|
||||
@@ -152,8 +152,8 @@ void Particles2DEditorPlugin::_notification(int p_what) {
|
||||
|
||||
void Particles2DEditorPlugin::_bind_methods() {
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("_menu_callback"),&Particles2DEditorPlugin::_menu_callback);
|
||||
ObjectTypeDB::bind_method(_MD("_file_selected"),&Particles2DEditorPlugin::_file_selected);
|
||||
ClassDB::bind_method(_MD("_menu_callback"),&Particles2DEditorPlugin::_menu_callback);
|
||||
ClassDB::bind_method(_MD("_file_selected"),&Particles2DEditorPlugin::_file_selected);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user