From e05a1871db5b31c9a694e4f0caf5147f91c145fd Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 27 Jan 2025 14:51:22 +0100 Subject: [PATCH] Fix #133551: Crash accessing scene.tool_settings.uv_sculpt After e3894f0a0708d1619dbfce3fb081f12bcee3f0c3, the UV sculpt struct doesn't inherit from Paint anymore. Pull Request: https://projects.blender.org/blender/blender/pulls/133655 --- source/blender/makesrna/intern/rna_sculpt_paint.cc | 2 +- tests/python/bl_rna_accessors.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.cc b/source/blender/makesrna/intern/rna_sculpt_paint.cc index f4fe9b7350b..c740542be2a 100644 --- a/source/blender/makesrna/intern/rna_sculpt_paint.cc +++ b/source/blender/makesrna/intern/rna_sculpt_paint.cc @@ -924,7 +924,7 @@ static void rna_def_uv_sculpt(BlenderRNA *brna) StructRNA *srna; PropertyRNA *prop; - srna = RNA_def_struct(brna, "UvSculpt", "Paint"); + srna = RNA_def_struct(brna, "UvSculpt", nullptr); RNA_def_struct_path_func(srna, "rna_UvSculpt_path"); RNA_def_struct_ui_text(srna, "UV Sculpting", ""); diff --git a/tests/python/bl_rna_accessors.py b/tests/python/bl_rna_accessors.py index c94f82be4bd..536e753aa30 100644 --- a/tests/python/bl_rna_accessors.py +++ b/tests/python/bl_rna_accessors.py @@ -19,8 +19,6 @@ class TestRnaProperties(unittest.TestCase): # These paths are problematic to process, skip for the time being. SKIP_PROPERTIES = { bpy.types.Depsgraph.bl_rna.properties["object_instances"], - # XXX To be removed once #133551 is fixed. - bpy.types.ToolSettings.bl_rna.properties["uv_sculpt"], } if repr(struct) in self.processed_data: