summaryrefslogtreecommitdiff
path: root/editor/editor_path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_path.cpp')
-rw-r--r--editor/editor_path.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/editor/editor_path.cpp b/editor/editor_path.cpp
index fdac68ea1f..24206b0f0d 100644
--- a/editor/editor_path.cpp
+++ b/editor/editor_path.cpp
@@ -139,9 +139,9 @@ void EditorPath::_notification(int p_what) {
if (left < 0)
continue;
String name;
- if (obj->cast_to<Resource>()) {
+ if (Object::cast_to<Resource>(obj)) {
- Resource *r = obj->cast_to<Resource>();
+ Resource *r = Object::cast_to<Resource>(obj);
if (r->get_path().is_resource_file())
name = r->get_path().get_file();
else
@@ -149,11 +149,11 @@ void EditorPath::_notification(int p_what) {
if (name == "")
name = r->get_class();
- } else if (obj->cast_to<Node>()) {
+ } else if (Object::cast_to<Node>(obj)) {
- name = obj->cast_to<Node>()->get_name();
- } else if (obj->cast_to<Resource>() && obj->cast_to<Resource>()->get_name() != "") {
- name = obj->cast_to<Resource>()->get_name();
+ name = Object::cast_to<Node>(obj)->get_name();
+ } else if (Object::cast_to<Resource>(obj) && Object::cast_to<Resource>(obj)->get_name() != "") {
+ name = Object::cast_to<Resource>(obj)->get_name();
} else {
name = obj->get_class();
}