mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix error in SolidView when there is a model but no printer
This commit is contained in:
parent
1848bb5cc4
commit
c95cc7a21b
1 changed files with 5 additions and 2 deletions
|
@ -62,8 +62,11 @@ class SolidView(View):
|
|||
|
||||
uniforms = {}
|
||||
if not multi_extrusion:
|
||||
if global_container_stack:
|
||||
material = global_container_stack.findContainer({ "type": "material" })
|
||||
material_color = material.getMetaDataEntry("color_code", default = self._extruders_model.defaultColors[0]) if material else self._extruders_model.defaultColors[0]
|
||||
else:
|
||||
material_color = self._extruders_model.defaultColors[0]
|
||||
else:
|
||||
# Get color to render this mesh in from ExtrudersModel
|
||||
extruder_index = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue