UI: some API functions don't require explicit context passing anymore.
This commit is contained in:
@@ -26,10 +26,10 @@ class DATA_PT_shape_curve(DataButtonsPanel):
|
||||
split = layout.split(percentage=0.65)
|
||||
|
||||
if ob:
|
||||
split.template_ID(context, ob, "data")
|
||||
split.template_ID(ob, "data")
|
||||
split.itemS()
|
||||
elif curve:
|
||||
split.template_ID(context, space, "pin_id")
|
||||
split.template_ID(space, "pin_id")
|
||||
split.itemS()
|
||||
|
||||
if curve:
|
||||
|
||||
Reference in New Issue
Block a user