Skip to content

Commit

Permalink
Rigify: support other keyword options in make_property.
Browse files Browse the repository at this point in the history
Currently there is 'subtype', but allow everything to future proof.
  • Loading branch information
angavrilov committed Jun 25, 2020
1 parent 81ed542 commit 202330b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rigify/utils/mechanism.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ def make_constraint(
# Custom property creation utilities
#=============================================

def make_property(owner, name, default, *, min=0.0, max=1.0, soft_min=None, soft_max=None, description=None, overridable=True):
def make_property(
owner, name, default, *, min=0.0, max=1.0, soft_min=None, soft_max=None,
description=None, overridable=True, **options):
"""
Creates and initializes a custom property of owner.
Expand All @@ -112,6 +114,7 @@ def make_property(owner, name, default, *, min=0.0, max=1.0, soft_min=None, soft
min = min, max = max, soft_min = soft_min, soft_max = soft_max,
description = description or name,
overridable = overridable,
**options
)

#=============================================
Expand Down

0 comments on commit 202330b

Please sign in to comment.