diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2020-06-25 13:57:37 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2020-06-25 13:57:37 +0300 |
commit | 202330ba821e3c2ae32ff176b5546248810e741c (patch) | |
tree | 8d5d4c547da7d3d4b71caccca331c7e13870a23e /rigify | |
parent | 81ed542cead8626fee4f9ec478c67a71c2e1bf05 (diff) |
Rigify: support other keyword options in make_property.
Currently there is 'subtype', but allow everything to future proof.
Diffstat (limited to 'rigify')
-rw-r--r-- | rigify/utils/mechanism.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rigify/utils/mechanism.py b/rigify/utils/mechanism.py index 46545096..33c098dc 100644 --- a/rigify/utils/mechanism.py +++ b/rigify/utils/mechanism.py @@ -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. @@ -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 ) #============================================= |