mirror of
https://github.com/wassname/sloth.git
synced 2026-08-08 11:27:16 +08:00
Support missing points in NPointFaceItem
This commit is contained in:
@@ -466,13 +466,24 @@ class NPointFacePointItem(QGraphicsEllipseItem):
|
||||
class NPointFaceItem(GroupItem):
|
||||
items = [
|
||||
(OccludablePointItem, "leoc"),
|
||||
(OccludablePointItem, "lec"),
|
||||
(OccludablePointItem, "leic"),
|
||||
(OccludablePointItem, "reic"),
|
||||
(OccludablePointItem, "rec"),
|
||||
(OccludablePointItem, "reoc"),
|
||||
(OccludablePointItem, "nt"),
|
||||
(OccludablePointItem, "ulc"),
|
||||
(OccludablePointItem, "mc"),
|
||||
(OccludablePointItem, "lmc"),
|
||||
(OccludablePointItem, "rmc"),
|
||||
]
|
||||
|
||||
def createChildren(self):
|
||||
for callable_, prefix in self.items:
|
||||
if prefix + 'x' in self._model_item and prefix + 'y' in self._model_item:
|
||||
child = callable_(self._model_item, prefix, self)
|
||||
self._children.append(child)
|
||||
|
||||
def boundingRect(self):
|
||||
br = self.childrenBoundingRect()
|
||||
offset = 0.2 * br.height()
|
||||
|
||||
Reference in New Issue
Block a user