mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:59:02 +08:00
Merge branch 'master' into CURA-4234_expand_collapse
This commit is contained in:
commit
497bc756b7
@ -131,19 +131,19 @@ class StartSliceJob(Job):
|
|||||||
Logger.log("w", "No objects suitable for one at a time found, or no correct order found")
|
Logger.log("w", "No objects suitable for one at a time found, or no correct order found")
|
||||||
else:
|
else:
|
||||||
temp_list = []
|
temp_list = []
|
||||||
is_non_printing_mesh = False
|
has_printing_mesh = False
|
||||||
for node in DepthFirstIterator(self._scene.getRoot()):
|
for node in DepthFirstIterator(self._scene.getRoot()):
|
||||||
if type(node) is SceneNode and node.getMeshData() and node.getMeshData().getVertices() is not None:
|
if type(node) is SceneNode and node.getMeshData() and node.getMeshData().getVertices() is not None:
|
||||||
_non_printing_mesh = getattr(node, "_non_printing_mesh", False)
|
_non_printing_mesh = getattr(node, "_non_printing_mesh", False)
|
||||||
if not getattr(node, "_outside_buildarea", False) or _non_printing_mesh:
|
if not getattr(node, "_outside_buildarea", False) or _non_printing_mesh:
|
||||||
temp_list.append(node)
|
temp_list.append(node)
|
||||||
if _non_printing_mesh:
|
if not _non_printing_mesh:
|
||||||
is_non_printing_mesh = True
|
has_printing_mesh = True
|
||||||
Job.yieldThread()
|
Job.yieldThread()
|
||||||
|
|
||||||
#If list has one node and it has non printing settings then remove it from list
|
#If the list doesn't have any model with suitable settings then clean the list
|
||||||
# otherwise CuraEngine will crash
|
# otherwise CuraEngine will crash
|
||||||
if len(temp_list) == 1 and is_non_printing_mesh:
|
if not has_printing_mesh:
|
||||||
temp_list.clear()
|
temp_list.clear()
|
||||||
|
|
||||||
if temp_list:
|
if temp_list:
|
||||||
|
@ -737,7 +737,7 @@ class XmlMaterialProfile(InstanceContainer):
|
|||||||
Logger.log("w", "No definition found for machine ID %s", machine_id)
|
Logger.log("w", "No definition found for machine ID %s", machine_id)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
Logger.log("d", "========= Found def for machine [%s]", machine_id)
|
Logger.log("d", "Found def for machine [%s]", machine_id)
|
||||||
definition_metadata = definition_metadata[0]
|
definition_metadata = definition_metadata[0]
|
||||||
|
|
||||||
machine_manufacturer = identifier.get("manufacturer", definition_metadata.get("manufacturer", "Unknown")) #If the XML material doesn't specify a manufacturer, use the one in the actual printer definition.
|
machine_manufacturer = identifier.get("manufacturer", definition_metadata.get("manufacturer", "Unknown")) #If the XML material doesn't specify a manufacturer, use the one in the actual printer definition.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user