mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Don't add a SettingOverrideDecorator twice
CuraSceneNodes get a SettingOverrideDecorator automatically when constructed
This commit is contained in:
parent
af637d5acc
commit
ba67851105
1 changed files with 1 additions and 3 deletions
|
|
@ -108,12 +108,10 @@ class SupportEraser(Tool):
|
||||||
node.setPosition(position)
|
node.setPosition(position)
|
||||||
|
|
||||||
active_build_plate = Application.getInstance().getMultiBuildPlateModel().activeBuildPlate
|
active_build_plate = Application.getInstance().getMultiBuildPlateModel().activeBuildPlate
|
||||||
|
|
||||||
node.addDecorator(SettingOverrideDecorator())
|
|
||||||
node.addDecorator(BuildPlateDecorator(active_build_plate))
|
node.addDecorator(BuildPlateDecorator(active_build_plate))
|
||||||
node.addDecorator(SliceableObjectDecorator())
|
node.addDecorator(SliceableObjectDecorator())
|
||||||
|
|
||||||
stack = node.callDecoration("getStack") # created by SettingOverrideDecorator
|
stack = node.callDecoration("getStack") # created by SettingOverrideDecorator that is automatically added to CuraSceneNode
|
||||||
settings = stack.getTop()
|
settings = stack.getTop()
|
||||||
|
|
||||||
definition = stack.getSettingDefinition("anti_overhang_mesh")
|
definition = stack.getSettingDefinition("anti_overhang_mesh")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue