Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
202330ba
Commit
202330ba
authored
5 years ago
by
Alexander Gavrilov
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rigify/utils/mechanism.py
+4
-1
4 additions, 1 deletion
rigify/utils/mechanism.py
with
4 additions
and
1 deletion
rigify/utils/mechanism.py
+
4
−
1
View file @
202330ba
...
@@ -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
)
)
#=============================================
#=============================================
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment