Fix: #133486: 'use_region_toggle_pie' AssertionError in MovieClipEditor
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user