D6: Moved decorator to cura

This commit is contained in:
Victor Larchenko 2016-12-09 15:26:37 +06:00 committed by Youness Alaoui
parent 3605403314
commit 620a3891da
5 changed files with 54 additions and 34 deletions

View file

@ -1,16 +1,17 @@
# Contributed by Seva Alekseyev <sevaa@nih.gov> with National Institutes of Health, 2016
# Cura is released under the terms of the AGPLv3 or higher.
from UM.Mesh.MeshReader import MeshReader
from UM.Mesh.MeshBuilder import MeshBuilder
from math import pi, sin, cos, sqrt
import numpy
from UM.Job import Job
from UM.Logger import Logger
from UM.Math.Matrix import Matrix
from UM.Math.Vector import Vector
from UM.Mesh.MeshBuilder import MeshBuilder
from UM.Mesh.MeshReader import MeshReader
from UM.Scene.SceneNode import SceneNode
from UM.Job import Job
from math import pi, sin, cos, sqrt
import numpy
from UM.Scene.SliceableObjectDecorator import SliceableObjectDecorator
try:
import xml.etree.cElementTree as ET
@ -97,8 +98,6 @@ class X3DReader(MeshReader):
Logger.logException("e", "Exception in X3D reader")
return None
sliceable_decorator = SliceableObjectDecorator()
node.addDecorator(sliceable_decorator)
return node
# ------------------------- XML tree traversal