Skip to content

Commit

Permalink
Activate models auto drop down (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton authored Jul 9, 2024
1 parent 06ebafd commit 4fdd975
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CalibrationShapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit 4fdd975

Please sign in to comment.