mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:09:01 +08:00
Add logging and minor fix for project loading
CURA-4204
This commit is contained in:
parent
3805d2ff9e
commit
3d44d3c4ca
@ -832,6 +832,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||||||
|
|
||||||
# replace old material in global and extruder stacks with new
|
# replace old material in global and extruder stacks with new
|
||||||
self._replaceStackMaterialWithNew(global_stack, old_to_new_material_dict)
|
self._replaceStackMaterialWithNew(global_stack, old_to_new_material_dict)
|
||||||
|
if extruder_stacks:
|
||||||
for each_extruder_stack in extruder_stacks:
|
for each_extruder_stack in extruder_stacks:
|
||||||
self._replaceStackMaterialWithNew(each_extruder_stack, old_to_new_material_dict)
|
self._replaceStackMaterialWithNew(each_extruder_stack, old_to_new_material_dict)
|
||||||
|
|
||||||
@ -899,6 +900,8 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||||||
best_matching_old_material_id = old_parent_material_id
|
best_matching_old_material_id = old_parent_material_id
|
||||||
|
|
||||||
if best_matching_old_material_id is None:
|
if best_matching_old_material_id is None:
|
||||||
|
Logger.log("w", "Cannot find any matching old material ID for stack [%s] material [%s]. Something can go wrong",
|
||||||
|
stack.getId(), old_material_id_in_stack)
|
||||||
return
|
return
|
||||||
|
|
||||||
# find the new material container
|
# find the new material container
|
||||||
|
Loading…
x
Reference in New Issue
Block a user