Merge pull request #6288 from Ultimaker/feature_bottom_face

Align Face To Build-Plate
This commit is contained in:
Lipu Fei 2019-09-03 16:14:48 +02:00 committed by GitHub
commit d154c98476
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 3 deletions

View file

@ -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