Fix #133551: Crash accessing scene.tool_settings.uv_sculpt

After e3894f0a07, the UV sculpt
struct doesn't inherit from Paint anymore.

Pull Request: https://projects.blender.org/blender/blender/pulls/133655
This commit is contained in:
Hans Goudey
2025-01-27 14:51:22 +01:00
committed by Hans Goudey
parent 8c014d0a32
commit e05a1871db
2 changed files with 1 additions and 3 deletions

View File

@@ -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", "");

View File

@@ -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: