diff options
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/rna_prop_ui.py | 8 | ||||
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py index 7fcb5e84031..d01e8911040 100644 --- a/release/scripts/modules/rna_prop_ui.py +++ b/release/scripts/modules/rna_prop_ui.py @@ -120,7 +120,13 @@ def rna_idprop_ui_prop_default_set(item, prop, value): del rna_ui["default"] -def rna_idprop_ui_create(item, prop, default, min=0.0, max=1.0, soft_min=None, soft_max=None, description=None, overridable=False): +def rna_idprop_ui_create( + item, prop, *, default, + min=0.0, max=1.0, + soft_min=None, soft_max=None, + description=None, + overridable=False, +): """Create and initialize a custom property with limits, defaults and other settings.""" proptype = type(default) diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index e22f50dedbd..5976e036fab 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -1343,7 +1343,7 @@ class WM_OT_properties_add(Operator): *type(item).bl_rna.properties.keys(), }) - rna_idprop_ui_create(item, prop, 1.0) + rna_idprop_ui_create(item, prop, default=1.0) return {'FINISHED'} |