Undoing transforms now updates the move tool UI
This commit is contained in:
parent
8987e33feb
commit
96b3f10c6c
@ -156,6 +156,10 @@ class MoveTool(EditorTool):
|
|||||||
def currentImport(self, pendingImport):
|
def currentImport(self, pendingImport):
|
||||||
self._currentImport = pendingImport
|
self._currentImport = pendingImport
|
||||||
self.pointInput.setEnabled(pendingImport is not None)
|
self.pointInput.setEnabled(pendingImport is not None)
|
||||||
|
if pendingImport is not None:
|
||||||
|
pendingImport.rotationChanged.connect(self.setRotationInput)
|
||||||
|
pendingImport.positionChanged.connect(self.setPositionInput)
|
||||||
|
|
||||||
# Set current import to different color?
|
# Set current import to different color?
|
||||||
# for node in self.pendingImportNodes.itervalues():
|
# for node in self.pendingImportNodes.itervalues():
|
||||||
# node.outlineNode.wireColor = (.2, 1., .2, .5) if node.pendingImport is value else (1, 1, 1, .3)
|
# node.outlineNode.wireColor = (.2, 1., .2, .5) if node.pendingImport is value else (1, 1, 1, .3)
|
||||||
@ -176,6 +180,12 @@ class MoveTool(EditorTool):
|
|||||||
def currentImportNode(self):
|
def currentImportNode(self):
|
||||||
return self._currentImportNode
|
return self._currentImportNode
|
||||||
|
|
||||||
|
def setRotationInput(self, rots):
|
||||||
|
self.rotationInput.rotation = rots
|
||||||
|
|
||||||
|
def setPositionInput(self, pos):
|
||||||
|
self.pointInput.point = pos
|
||||||
|
|
||||||
# --- Mouse events ---
|
# --- Mouse events ---
|
||||||
|
|
||||||
def mouseMove(self, event):
|
def mouseMove(self, event):
|
||||||
|
Reference in New Issue
Block a user