mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Replace many uses of is_class with derives_from.
This commit is contained in:
@@ -987,7 +987,7 @@ void Path2DEditorPlugin::edit(Object *p_object) {
|
||||
}
|
||||
|
||||
bool Path2DEditorPlugin::handles(Object *p_object) const {
|
||||
return p_object->is_class("Path2D");
|
||||
return p_object->derives_from<Path2D>();
|
||||
}
|
||||
|
||||
void Path2DEditorPlugin::make_visible(bool p_visible) {
|
||||
|
||||
Reference in New Issue
Block a user