Merge pull request #96292 from AThousandShips/null_check_ref_fix
Cleanup of raw `nullptr` checks with `Ref`
This commit is contained in:
commit
d15de6f264
48 changed files with 169 additions and 170 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue