Fix: #133486: 'use_region_toggle_pie' AssertionError in MovieClipEditor

This commit is contained in:
Campbell Barton
2025-04-22 11:25:14 +00:00
parent 3c15f1bbe0
commit 9de0aa1066
2 changed files with 4 additions and 2 deletions

View File

@@ -3540,6 +3540,7 @@ class WM_MT_region_toggle_pie(Menu):
for region in context.area.regions:
region_type = region.type
# If the attribute doesn't exist, the RNA definition is outdated and needs to be see: #134339 and it fix.
attr = cls._region_info.get(region_type, None)
if attr is None:
continue

View File

@@ -8117,8 +8117,9 @@ static void rna_def_space_clip(BlenderRNA *brna)
RNA_def_struct_sdna(srna, "SpaceClip");
RNA_def_struct_ui_text(srna, "Space Clip Editor", "Clip editor space data");
rna_def_space_generic_show_region_toggles(
srna, (1 << RGN_TYPE_TOOLS) | (1 << RGN_TYPE_UI) | (1 << RGN_TYPE_HUD));
rna_def_space_generic_show_region_toggles(srna,
(1 << RGN_TYPE_TOOLS) | (1 << RGN_TYPE_UI) |
(1 << RGN_TYPE_HUD) | (1 << RGN_TYPE_CHANNELS));
/* movieclip */
prop = RNA_def_property(srna, "clip", PROP_POINTER, PROP_NONE);