Use ObjectID as argument when referred-calling _request_gizmo
Fixes crash on project launch.
This commit is contained in:
@@ -188,7 +188,7 @@ void Node3D::_notification(int p_what) {
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
if (Engine::get_singleton()->is_editor_hint() && get_tree()->is_node_being_edited(this)) {
|
||||
get_tree()->call_group_flags(SceneTree::GROUP_CALL_DEFERRED, SceneStringNames::get_singleton()->_spatial_editor_group, SceneStringNames::get_singleton()->_request_gizmo, this);
|
||||
get_tree()->call_group_flags(SceneTree::GROUP_CALL_DEFERRED, SceneStringNames::get_singleton()->_spatial_editor_group, SNAME("_request_gizmo_for_id"), get_instance_id());
|
||||
}
|
||||
#endif
|
||||
} break;
|
||||
@@ -482,7 +482,7 @@ void Node3D::update_gizmos() {
|
||||
}
|
||||
|
||||
if (data.gizmos.is_empty()) {
|
||||
get_tree()->call_group_flags(SceneTree::GROUP_CALL_DEFERRED, SceneStringNames::get_singleton()->_spatial_editor_group, SceneStringNames::get_singleton()->_request_gizmo, this);
|
||||
get_tree()->call_group_flags(SceneTree::GROUP_CALL_DEFERRED, SceneStringNames::get_singleton()->_spatial_editor_group, SNAME("_request_gizmo_for_id"), get_instance_id());
|
||||
return;
|
||||
}
|
||||
if (data.gizmos_dirty) {
|
||||
|
||||
Reference in New Issue
Block a user