Rigify - saving pbone custom properties to metarig #104695
@ -440,10 +440,12 @@ def write_metarig(obj: ArmatureObject, layers=False, func_name="create",
|
|||||||
if 'subtype' in props_data:
|
if 'subtype' in props_data:
|
||||||
code.append(f" subtype={props_data['subtype']!r},")
|
code.append(f" subtype={props_data['subtype']!r},")
|
||||||
if 'description' in props_data:
|
if 'description' in props_data:
|
||||||
code.append(f" description={props_data['description']!r}")
|
code.append(f" description={props_data['description']!r},")
|
||||||
code.append(f" )")
|
|
||||||
if 'precision' in props_data:
|
if 'precision' in props_data:
|
||||||
code.append(f" pbone.id_properties_ui({custom_property!r}).update(precision={props_data['precision']})")
|
code.append(f" precision={props_data['precision']},")
|
||||||
|
if 'step' in props_data:
|
||||||
|
code.append(f" step={props_data['step']},")
|
||||||
|
code.append(f" )")
|
||||||
if props_data['default'] != current_value:
|
if props_data['default'] != current_value:
|
||||||
code.append(f" pbone[{custom_property!r}] = {current_value}")
|
code.append(f" pbone[{custom_property!r}] = {current_value}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user