Make magic value into funtion (max face-id).

part of CURA-6745
This commit is contained in:
Remco Burema 2019-09-03 15:08:41 +02:00
parent 5b48e13337
commit 503a24f7a1
2 changed files with 3 additions and 3 deletions

View file

@ -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 > 0x10001:
if not meshdata or face_id < 0 or face_id > Selection.endFaceSelectionId():
return
rotation_point, face_normal = meshdata.getFacePlane(face_id)