mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Undo emit transformationChanges (caused a crash), themed objects in objects list. CURA-4525
This commit is contained in:
parent
2c831ceb05
commit
663ceab069
6 changed files with 19 additions and 15 deletions
|
@ -1,6 +1,5 @@
|
|||
from UM.Scene.SceneNodeDecorator import SceneNodeDecorator
|
||||
from UM.Application import Application
|
||||
from UM.Logger import Logger
|
||||
from UM.Scene.SceneNode import SceneNode
|
||||
|
||||
|
||||
## Make a SceneNode build plate aware CuraSceneNode objects all have this decorator.
|
||||
|
@ -14,13 +13,14 @@ class BuildPlateDecorator(SceneNodeDecorator):
|
|||
# Make sure that groups are set correctly
|
||||
# setBuildPlateForSelection in CuraActions makes sure that no single childs are set.
|
||||
self._build_plate_number = nr
|
||||
if self._node is not None:
|
||||
self._node.transformationChanged.emit()
|
||||
# if issubclass(type(self._node), SceneNode): # TODO: Crashes on ArrangeObjectsAllBuildPlatesJob
|
||||
# self._node.transformationChanged.emit()
|
||||
#self._node.transformationChanged.emit()
|
||||
if self._node and self._node.callDecoration("isGroup"):
|
||||
for child in self._node.getChildren():
|
||||
child.callDecoration("setBuildPlateNumber", nr)
|
||||
child.transformationChanged.emit()
|
||||
# if issubclass(type(child), SceneNode):
|
||||
# child.transformationChanged.emit()
|
||||
|
||||
def getBuildPlateNumber(self):
|
||||
return self._build_plate_number
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue