Merge pull request #91619 from AThousandShips/find_improve
Replace `find` with `contains/has` where applicable
This commit is contained in:
commit
a9a1d0a162
55 changed files with 219 additions and 219 deletions
|
|
@ -2398,7 +2398,7 @@ void EditorNode::_edit_current(bool p_skip_foreign, bool p_skip_inspector_update
|
|||
Ref<Resource> res = Object::cast_to<Resource>(current_obj);
|
||||
if (p_skip_foreign && res.is_valid()) {
|
||||
const int current_tab = scene_tabs->get_current_tab();
|
||||
if (res->get_path().find("::") > -1 && res->get_path().get_slice("::", 0) != editor_data.get_scene_path(current_tab)) {
|
||||
if (res->get_path().contains("::") && res->get_path().get_slice("::", 0) != editor_data.get_scene_path(current_tab)) {
|
||||
// Trying to edit resource that belongs to another scene; abort.
|
||||
current_obj = nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue