Skip to content
Snippets Groups Projects
Commit 202330ba authored by Alexander Gavrilov's avatar Alexander Gavrilov
Browse files

Rigify: support other keyword options in make_property.

Currently there is 'subtype', but allow everything to future proof.
parent 81ed542c
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,9 @@ def make_constraint( ...@@ -98,7 +98,9 @@ def make_constraint(
# Custom property creation utilities # 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. 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 ...@@ -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, min = min, max = max, soft_min = soft_min, soft_max = soft_max,
description = description or name, description = description or name,
overridable = overridable, overridable = overridable,
**options
) )
#============================================= #=============================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment