summaryrefslogtreecommitdiff
path: root/scene/3d/spatial.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-08-09 16:27:59 -0300
committerGitHub <noreply@github.com>2018-08-09 16:27:59 -0300
commitfbb5ca4d9733426aa3b161c7209942aa2bb67953 (patch)
tree1036f99323281d8daccaef07e641d7ff71977b3c /scene/3d/spatial.cpp
parenta71a5fc0c3f5d487d3f18c3b9e9a768052795e86 (diff)
parent59fd18ab1aa037121aae049792762320777611dc (diff)
Merge pull request #20584 from JFonS/gizmo_enabling
New gizmo structure and gizmo disabling menu
Diffstat (limited to 'scene/3d/spatial.cpp')
-rw-r--r--scene/3d/spatial.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/spatial.cpp b/scene/3d/spatial.cpp
index 4866611dce..3f494264e7 100644
--- a/scene/3d/spatial.cpp
+++ b/scene/3d/spatial.cpp
@@ -202,6 +202,7 @@ void Spatial::_notification(int p_what) {
#ifdef TOOLS_ENABLED
if (data.gizmo.is_valid()) {
data.gizmo->free();
+ data.gizmo.unref();
}
#endif