Merge pull request #96292 from AThousandShips/null_check_ref_fix

Cleanup of raw `nullptr` checks with `Ref`
This commit is contained in:
Rémi Verschelde 2024-09-03 16:13:55 +02:00
commit d15de6f264
No known key found for this signature in database
GPG key ID: C3336907360768E1
48 changed files with 169 additions and 170 deletions

View file

@ -3694,7 +3694,7 @@ void SceneTreeDock::_tree_rmb(const Vector2 &p_menu_pos) {
if (selection.size() == 1) {
bool is_external = (!selection.front()->get()->get_scene_file_path().is_empty());
if (is_external) {
bool is_inherited = selection.front()->get()->get_scene_inherited_state() != nullptr;
bool is_inherited = selection.front()->get()->get_scene_inherited_state().is_valid();
bool is_top_level = selection.front()->get()->get_owner() == nullptr;
if (is_inherited && is_top_level) {
menu->add_separator();