From 70332978fde2883751765569a971a7f6ab68f684 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Tue, 3 Sep 2019 15:48:31 +0200 Subject: [PATCH] Less cryptic max face-id. part of CURA-6745 --- cura/CuraActions.py | 2 +- plugins/SolidView/SolidView.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/CuraActions.py b/cura/CuraActions.py index 9338521003..ad359973c1 100644 --- a/cura/CuraActions.py +++ b/cura/CuraActions.py @@ -85,7 +85,7 @@ class CuraActions(QObject): original_node, face_id = selected_face meshdata = original_node.getMeshDataTransformed() - if not meshdata or face_id < 0 or face_id > Selection.endFaceSelectionId(): + if not meshdata or face_id < 0 or face_id > Selection.maxFaceSelectionId(): return rotation_point, face_normal = meshdata.getFacePlane(face_id) diff --git a/plugins/SolidView/SolidView.py b/plugins/SolidView/SolidView.py index da18c328d1..94691b637a 100644 --- a/plugins/SolidView/SolidView.py +++ b/plugins/SolidView/SolidView.py @@ -142,7 +142,7 @@ class SolidView(View): # Color the currently selected face-id. face = Selection.getSelectedFace() - uniforms["selected_face"] = Selection.endFaceSelectionId() if not face or node != face[0] else face[1] + uniforms["selected_face"] = (Selection.maxFaceSelectionId() + 1) if not face or node != face[0] else face[1] except ValueError: pass