You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Fix visibility of gizmos on scene load
This commit is contained in:
@@ -188,7 +188,9 @@ void Spatial::_notification(int p_what) {
|
||||
if (data.gizmo.is_valid()) {
|
||||
data.gizmo->create();
|
||||
if (data.gizmo->can_draw()) {
|
||||
data.gizmo->redraw();
|
||||
if (is_visible_in_tree()) {
|
||||
data.gizmo->redraw();
|
||||
}
|
||||
}
|
||||
data.gizmo->transform();
|
||||
}
|
||||
@@ -409,7 +411,9 @@ void Spatial::set_gizmo(const Ref<SpatialGizmo> &p_gizmo) {
|
||||
|
||||
data.gizmo->create();
|
||||
if (data.gizmo->can_draw()) {
|
||||
data.gizmo->redraw();
|
||||
if (is_visible_in_tree()) {
|
||||
data.gizmo->redraw();
|
||||
}
|
||||
}
|
||||
data.gizmo->transform();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user