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:
@@ -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", "");
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user