Revert "Replace many uses of is_class with derives_from."
This reverts commit 78b743cf4a.
This commit is contained in:
@ -4125,7 +4125,7 @@ void SceneTreeDock::_focus_node() {
|
||||
Node *node = scene_tree->get_selected();
|
||||
ERR_FAIL_NULL(node);
|
||||
|
||||
if (node->derives_from<CanvasItem>()) {
|
||||
if (node->is_class("CanvasItem")) {
|
||||
CanvasItemEditorPlugin *editor = Object::cast_to<CanvasItemEditorPlugin>(editor_data->get_editor_by_name("2D"));
|
||||
editor->get_canvas_item_editor()->focus_selection();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user