diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-09-19 18:39:50 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-09-19 18:39:50 -0300 |
commit | 549d344f0fef5e5748ded69b6a037698ff55f8bc (patch) | |
tree | a22ee2a3b0d6303fe3e4348831e7f581dd8a0a07 /scene/3d/spatial.cpp | |
parent | 526aae62edfa31aa156d604e8b25caab512c6bff (diff) | |
download | redot-engine-549d344f0fef5e5748ded69b6a037698ff55f8bc.tar.gz |
Fixing Issues...
- #672 (default user:// in $HOME/.godot/app_userdata (linux/osx) and $APPDATA/Godot/app_userdata (Windows)
- #676 (draw both tiles and octants in order from top to bottom, left to right )
- #686 (unicode escape sequences work now)
- #702 (was not a bug, but a test was added to see if bodies went too far away)
Diffstat (limited to 'scene/3d/spatial.cpp')
-rw-r--r-- | scene/3d/spatial.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/scene/3d/spatial.cpp b/scene/3d/spatial.cpp index 13094300d0..d304095d33 100644 --- a/scene/3d/spatial.cpp +++ b/scene/3d/spatial.cpp @@ -438,8 +438,12 @@ Ref<SpatialGizmo> Spatial::get_gizmo() const { void Spatial::_update_gizmo() { data.gizmo_dirty=false; - if (data.gizmo.is_valid()) - data.gizmo->redraw(); + if (data.gizmo.is_valid()) { + if (is_visible()) + data.gizmo->redraw(); + else + data.gizmo->clear(); + } } @@ -511,6 +515,10 @@ void Spatial::_propagate_visibility_changed() { notification(NOTIFICATION_VISIBILITY_CHANGED); emit_signal(SceneStringNames::get_singleton()->visibility_changed); _change_notify("visibility/visible"); +#ifdef TOOLS_ENABLED + if (data.gizmo.is_valid()) + _update_gizmo(); +#endif for (List<Spatial*>::Element*E=data.children.front();E;E=E->next()) { |