mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Merge pull request #6288 from Ultimaker/feature_bottom_face
Align Face To Build-Plate
This commit is contained in:
commit
d154c98476
3 changed files with 48 additions and 3 deletions
|
@ -139,6 +139,10 @@ class SolidView(View):
|
|||
shade_factor * int(material_color[5:7], 16) / 255,
|
||||
1.0
|
||||
]
|
||||
|
||||
# Color the currently selected face-id.
|
||||
face = Selection.getSelectedFace()
|
||||
uniforms["selected_face"] = (Selection.getMaxFaceSelectionId() + 1) if not face or node != face[0] else face[1]
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue