diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-04-30 00:45:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-30 00:45:13 +0200 |
commit | 9b2ba9b8bb6b61487dbccec165d59f84e4e08fda (patch) | |
tree | 5a58110933478dc9de60d7469e2170545d4fb527 | |
parent | 7d999b75077654d9204adb50b56150e91e29fcbe (diff) | |
parent | fd490c95a52ed0dc84595ec473adc85cbaf4da25 (diff) |
Merge pull request #60642 from KoBeWi/‼️
Fix wrong condition checking for foreign resources
-rw-r--r-- | editor/editor_properties.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 581a807e27..d8fe545b25 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -2980,7 +2980,7 @@ void EditorPropertyResource::_resource_selected(const RES &p_resource, bool p_ed List<String> extensions; ResourceLoader::get_recognized_extensions_for_type("PackedScene", &extensions); - if (extensions.find(parent.get_extension()) && (!EditorNode::get_singleton()->get_edited_scene() || EditorNode::get_singleton()->get_edited_scene()->get_scene_file_path() == parent)) { + if (extensions.find(parent.get_extension()) && (!EditorNode::get_singleton()->get_edited_scene() || EditorNode::get_singleton()->get_edited_scene()->get_scene_file_path() != parent)) { // If the resource belongs to another scene, edit it in that scene instead. EditorNode::get_singleton()->call_deferred("edit_foreign_resource", p_resource); return; |