Fix #147907: Geometry Node Viewer Item "Auto Remove" toggle crash

The RNA property had an incorrect update callback assigned. The
update callback assumed the RNA pointer data was a node rather
than a node's viewer item.
This commit is contained in:
Hans Goudey
2025-10-12 10:51:08 -04:00
parent ef58bd609b
commit 8c4c92f304

View File

@@ -7309,7 +7309,8 @@ static void rna_def_geo_viewer_item(BlenderRNA *brna)
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
RNA_def_property_ui_text(
prop, "Auto Remove", "Remove the item automatically when it is unlinked");
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
RNA_def_property_update(
prop, NC_NODE | NA_EDITED, "rna_Node_ItemArray_item_update<GeoViewerItemsAccessor>");
}
static void rna_def_geo_viewer_items(BlenderRNA *brna)