From 404f9ddc37fcd0a3d3377beddfeb8c1e0dce977b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 7 Jun 2015 17:40:39 +1000 Subject: Cleanup: use staticmethods --- release/scripts/startup/bl_ui/properties_constraint.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'release/scripts/startup/bl_ui/properties_constraint.py') diff --git a/release/scripts/startup/bl_ui/properties_constraint.py b/release/scripts/startup/bl_ui/properties_constraint.py index 483da82e6a3..b37feb82461 100644 --- a/release/scripts/startup/bl_ui/properties_constraint.py +++ b/release/scripts/startup/bl_ui/properties_constraint.py @@ -38,7 +38,8 @@ class ConstraintButtonsPanel: if con.type not in {'RIGID_BODY_JOINT', 'NULL'}: box.prop(con, "influence") - def space_template(self, layout, con, target=True, owner=True): + @staticmethod + def space_template(layout, con, target=True, owner=True): if target or owner: split = layout.split(percentage=0.2) @@ -55,7 +56,8 @@ class ConstraintButtonsPanel: if owner: row.prop(con, "owner_space", text="") - def target_template(self, layout, con, subtargets=True): + @staticmethod + def target_template(layout, con, subtargets=True): layout.prop(con, "target") # XXX limiting settings for only 'curves' or some type of object if con.target and subtargets: @@ -69,6 +71,7 @@ class ConstraintButtonsPanel: elif con.target.type in {'MESH', 'LATTICE'}: layout.prop_search(con, "subtarget", con.target, "vertex_groups", text="Vertex Group") + @staticmethod def ik_template(self, layout, con): # only used for iTaSC layout.prop(con, "pole_target") -- cgit v1.2.3