Fix crash when tool has no cursorNode
This commit is contained in:
parent
93bd771575
commit
07cdd46816
@ -169,8 +169,8 @@ class WorldView(QGLWidget):
|
||||
def setToolCursor(self, cursorNode):
|
||||
if self.cursorNode:
|
||||
self.matrixNode.removeChild(self.cursorNode)
|
||||
self.cursorNode = cursorNode
|
||||
if cursorNode:
|
||||
self.cursorNode = cursorNode
|
||||
self.matrixNode.addChild(cursorNode)
|
||||
|
||||
def setToolOverlays(self, overlayNodes):
|
||||
|
Reference in New Issue
Block a user