|
@@ -895,7 +895,7 @@ class CuraApplication(QtApplication):
|
|
|
scene_bounding_box = None
|
|
|
is_block_slicing_node = False
|
|
|
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
|
|
- if not issubclass(type(node), SceneNode) or (not node.getMeshData() and not node.callDecoration("getLayerData")):
|
|
|
+ if not isinstance(node, SceneNode) or (not node.getMeshData() and not node.callDecoration("getLayerData")):
|
|
|
continue
|
|
|
if node.callDecoration("isBlockSlicing"):
|
|
|
is_block_slicing_node = True
|
|
@@ -1012,7 +1012,7 @@ class CuraApplication(QtApplication):
|
|
|
|
|
|
Selection.clear()
|
|
|
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
|
|
- if not issubclass(type(node), SceneNode):
|
|
|
+ if not isinstance(node, SceneNode):
|
|
|
continue
|
|
|
if not node.getMeshData() and not node.callDecoration("isGroup"):
|
|
|
continue # Node that doesnt have a mesh and is not a group.
|
|
@@ -1058,7 +1058,7 @@ class CuraApplication(QtApplication):
|
|
|
Logger.log("i", "Resetting all scene translations")
|
|
|
nodes = []
|
|
|
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
|
|
- if not issubclass(type(node), SceneNode):
|
|
|
+ if not isinstance(node, SceneNode):
|
|
|
continue
|
|
|
if not node.getMeshData() and not node.callDecoration("isGroup"):
|
|
|
continue # Node that doesnt have a mesh and is not a group.
|
|
@@ -1086,7 +1086,7 @@ class CuraApplication(QtApplication):
|
|
|
Logger.log("i", "Resetting all scene transformations")
|
|
|
nodes = []
|
|
|
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
|
|
- if not issubclass(type(node), SceneNode):
|
|
|
+ if not isinstance(node, SceneNode):
|
|
|
continue
|
|
|
if not node.getMeshData() and not node.callDecoration("isGroup"):
|
|
|
continue # Node that doesnt have a mesh and is not a group.
|
|
@@ -1113,7 +1113,7 @@ class CuraApplication(QtApplication):
|
|
|
def arrangeObjectsToAllBuildPlates(self):
|
|
|
nodes = []
|
|
|
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
|
|
- if not issubclass(type(node), SceneNode):
|
|
|
+ if not isinstance(node, SceneNode):
|
|
|
continue
|
|
|
if not node.getMeshData() and not node.callDecoration("isGroup"):
|
|
|
continue # Node that doesnt have a mesh and is not a group.
|
|
@@ -1134,7 +1134,7 @@ class CuraApplication(QtApplication):
|
|
|
nodes = []
|
|
|
active_build_plate = self.getBuildPlateModel().activeBuildPlate
|
|
|
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
|
|
- if not issubclass(type(node), SceneNode):
|
|
|
+ if not isinstance(node, SceneNode):
|
|
|
continue
|
|
|
if not node.getMeshData() and not node.callDecoration("isGroup"):
|
|
|
continue # Node that doesnt have a mesh and is not a group.
|
|
@@ -1158,7 +1158,7 @@ class CuraApplication(QtApplication):
|
|
|
# What nodes are on the build plate and are not being moved
|
|
|
fixed_nodes = []
|
|
|
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
|
|
- if not issubclass(type(node), SceneNode):
|
|
|
+ if not isinstance(node, SceneNode):
|
|
|
continue
|
|
|
if not node.getMeshData() and not node.callDecoration("isGroup"):
|
|
|
continue # Node that doesnt have a mesh and is not a group.
|
|
@@ -1186,7 +1186,7 @@ class CuraApplication(QtApplication):
|
|
|
Logger.log("i", "Reloading all loaded mesh data.")
|
|
|
nodes = []
|
|
|
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
|
|
- if not issubclass(type(node), SceneNode) or not node.getMeshData():
|
|
|
+ if not isinstance(node, SceneNode) or not node.getMeshData():
|
|
|
continue
|
|
|
|
|
|
nodes.append(node)
|