Skip to content

Commit

Permalink
add draw_label to SvSetDataObjectNodeMK2 (#4153)
Browse files Browse the repository at this point in the history
* add draw_label to SvSetDataObjectNodeMK2

* display only formula if formula is filled

* suppress warning
  • Loading branch information
zeffii authored Jun 8, 2021
1 parent 03d4feb commit 1a48ef5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nodes/object_nodes/set_blenddata2.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def process(self):
if Oo.is_linked:
Oo.sv_set(objs)

def draw_label(self):
if self.hide and self.formula:
return self.formula
return self.label or self.name

def register():
bpy.utils.register_class(SvSetDataObjectNodeMK2)
Expand Down

0 comments on commit 1a48ef5

Please sign in to comment.