diff --git a/CalibrationShapes.py b/CalibrationShapes.py index 89cbeba..3933604 100644 --- a/CalibrationShapes.py +++ b/CalibrationShapes.py @@ -99,6 +99,7 @@ from cura.Scene.CuraSceneNode import CuraSceneNode from UM.Scene.SceneNode import SceneNode from UM.Scene.Selection import Selection +from UM.Scene.SceneNodeSettings import SceneNodeSettings from cura.Scene.SliceableObjectDecorator import SliceableObjectDecorator from cura.Scene.BuildPlateDecorator import BuildPlateDecorator from UM.Operations.AddSceneNodeOperation import AddSceneNodeOperation @@ -864,7 +865,8 @@ def _addShape(self, mesh_name, mesh_data: MeshData, ext_pos = 0 , hole = False , new_instance.setProperty("value", mode) new_instance.resetState() # Ensure that the state is not seen as a user state. settings.addInstance(new_instance) - + + node.setSetting(SceneNodeSettings.AutoDropDown, True) active_build_plate = application.getMultiBuildPlateModel().activeBuildPlate node.addDecorator(BuildPlateDecorator(active_build_plate)) @@ -930,7 +932,9 @@ def _addShapeFlow(self, mesh_name, mesh_data: MeshData, flow = 100 , factor = 1 new_instance.setProperty("value", flow) new_instance.resetState() # Ensure that the state is not seen as a user state. settings.addInstance(new_instance) - + + node.setSetting(SceneNodeSettings.AutoDropDown, True) + active_build_plate = application.getMultiBuildPlateModel().activeBuildPlate node.addDecorator(BuildPlateDecorator(active_build_plate))