summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJFonS <joan.fonssanchez@gmail.com>2018-07-25 00:08:49 +0200
committerJFonS <joan.fonssanchez@gmail.com>2018-08-09 20:58:39 +0200
commit59fd18ab1aa037121aae049792762320777611dc (patch)
tree7dd34fffa303a4e1519bef58fcd0f052101d1490 /scene
parent9bd5315d30be8cb162bd7fee6a7db17f65b5057d (diff)
New gizmo structure and new gizmo disabling menu
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/spatial.cpp1
-rw-r--r--scene/3d/spatial.h1
2 files changed, 2 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
diff --git a/scene/3d/spatial.h b/scene/3d/spatial.h
index 653714dc98..bc054a8763 100644
--- a/scene/3d/spatial.h
+++ b/scene/3d/spatial.h
@@ -51,6 +51,7 @@ public:
virtual bool can_draw() const = 0;
SpatialGizmo();
+ virtual ~SpatialGizmo() {}
};
class Spatial : public Node {