mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
D5: Added decorator
This commit is contained in:
parent
002b3139e6
commit
4aa59950ca
7 changed files with 39 additions and 27 deletions
|
@ -14,6 +14,7 @@ from cura.Settings.SettingOverrideDecorator import SettingOverrideDecorator
|
|||
from UM.Application import Application
|
||||
from cura.Settings.ExtruderManager import ExtruderManager
|
||||
from cura.QualityManager import QualityManager
|
||||
from UM.Scene.SliceableObjectDecorator import SliceableObjectDecorator
|
||||
|
||||
import os.path
|
||||
import zipfile
|
||||
|
@ -234,6 +235,8 @@ class ThreeMFReader(MeshReader):
|
|||
except Exception as e:
|
||||
Logger.log("e", "An exception occurred in 3mf reader: %s", e)
|
||||
|
||||
sliceable_decorator = SliceableObjectDecorator()
|
||||
result.addDecorator(sliceable_decorator)
|
||||
return result
|
||||
|
||||
## Create a scale vector based on a unit string.
|
||||
|
@ -263,4 +266,4 @@ class ThreeMFReader(MeshReader):
|
|||
Logger.log("w", "Unrecognised unit %s used. Assuming mm instead", unit)
|
||||
scale = 1
|
||||
|
||||
return Vector(scale, scale, scale)
|
||||
return Vector(scale, scale, scale)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue