Fix T85558: crash changing the resolution mode of the "volume to mesh" node
The nodes update function geo_node_volume_to_mesh_update would not run if it is not the very first node in the tree. If the update function is not run, there are sockets not cleared from the SOCK_UNAVAIL flag (but this needs to be done -- these get available depending on the chosen mode). Havent tracked down why this was actually updating when it was the first node in the tree, but now make sure we always get an update by specifing an appropriate RNA update callback for the property. Maniphest Tasks: T85558 Differential Revision: https://developer.blender.org/D10403
This commit is contained in:
parent
fd8ac0b0f4
commit
780cabb7a8
Notes:
blender-bot
2023-02-14 10:29:32 +01:00
Referenced by issue #85558, Blender crash when changing the resolution mode of the "volume to mesh" node
|
@ -9029,6 +9029,7 @@ static void def_geo_volume_to_mesh(StructRNA *srna)
|
|||
prop = RNA_def_property(srna, "resolution_mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, resolution_mode_items);
|
||||
RNA_def_property_ui_text(prop, "Resolution Mode", "How the voxel size is specified");
|
||||
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update");
|
||||
}
|
||||
|
||||
static void def_geo_attribute_combine_xyz(StructRNA *srna)
|
||||
|
|
Loading…
Reference in New Issue