From 60056e55fb95dd8631447db8802fd8b5babc5fd2 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 11 Dec 2024 09:11:34 -0500 Subject: [PATCH] Fix #131721: Bevel modifier weight attribute crash with curve object Missing an object type check. --- source/blender/makesrna/intern/rna_modifier.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/blender/makesrna/intern/rna_modifier.cc b/source/blender/makesrna/intern/rna_modifier.cc index 8a487a18d07..b76d3eb8aa7 100644 --- a/source/blender/makesrna/intern/rna_modifier.cc +++ b/source/blender/makesrna/intern/rna_modifier.cc @@ -1395,6 +1395,9 @@ static void rna_BevelModifier_weight_attribute_visit_for_search( blender::FunctionRef visit_fn) { Object *ob = (Object *)ptr->owner_id; + if (ob->type != OB_MESH) { + return; + } PointerRNA mesh_ptr = RNA_id_pointer_create(static_cast(ob->data)); PropertyRNA *attributes_prop = RNA_struct_find_property(&mesh_ptr, "attributes"); RNA_PROP_BEGIN (&mesh_ptr, itemptr, attributes_prop) {