mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-21 13:06:28 +02:00
[ui] GraphEditor: use node label in duplicates tooltip
This commit is contained in:
parent
c128080bbb
commit
bbe40e0bc6
2 changed files with 11 additions and 5 deletions
|
@ -391,7 +391,15 @@ class BaseNode(BaseObject):
|
|||
Returns:
|
||||
str: the high-level label of this node
|
||||
"""
|
||||
t, idx = self._name.split("_")
|
||||
return self.nameToLabel(self._name)
|
||||
|
||||
@Slot(str, result=str)
|
||||
def nameToLabel(self, name):
|
||||
"""
|
||||
Returns:
|
||||
str: the high-level label from the technical node name
|
||||
"""
|
||||
t, idx = name.split("_")
|
||||
return "{}{}".format(t, idx if int(idx) > 1 else "")
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue