Fix crash when tool has no cursorNode

This commit is contained in:
David Vierra 2015-01-22 14:51:49 -10:00
parent 93bd771575
commit 07cdd46816

View File

@ -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):