gizmo: clear parent while still a gizmo

Fixes #1975
This commit is contained in:
itsmattkc
2022-07-20 08:25:52 -07:00
parent 46be693b3e
commit bb4bbb4fd7
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -28,4 +28,9 @@ NodeGizmo::NodeGizmo(QObject *parent) :
setParent(parent);
}
NodeGizmo::~NodeGizmo()
{
setParent(nullptr);
}
}
+1
View File
@@ -33,6 +33,7 @@ class NodeGizmo : public QObject
Q_OBJECT
public:
explicit NodeGizmo(QObject *parent = nullptr);
virtual ~NodeGizmo() override;
virtual void Draw(QPainter *p) const {}