Fix #105965: Add fur modifier properties missing UI data
Currently assigning values to IDProperties clears their UI data. That is fixed by #106161, but that is too risky for 3.5. Instead, work around the issue by triggering `MOD_nodes_update_interface` function which recreates the UI data of the modifier properties. Pull Request: https://projects.blender.org/blender/blender/pulls/106190
This commit is contained in:
@@ -170,6 +170,10 @@ class QuickFur(ObjectModeOperator, Operator):
|
||||
|
||||
curves_object.modifiers.move(0, len(curves_object.modifiers) - 1)
|
||||
|
||||
# Workaround for #105965: Rebuild UI data of modifier input properties.
|
||||
for modifier in curves_object.modifiers:
|
||||
modifier.node_group = modifier.node_group
|
||||
|
||||
return {'FINISHED'}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user