From 9de0aa1066d5c3f2a142cb8e83a545b4ceff9451 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 22 Apr 2025 11:25:14 +0000 Subject: [PATCH] Fix: #133486: 'use_region_toggle_pie' AssertionError in MovieClipEditor --- scripts/startup/bl_operators/wm.py | 1 + source/blender/makesrna/intern/rna_space.cc | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/startup/bl_operators/wm.py b/scripts/startup/bl_operators/wm.py index 378c099d64b..af6b08aa5ab 100644 --- a/scripts/startup/bl_operators/wm.py +++ b/scripts/startup/bl_operators/wm.py @@ -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 diff --git a/source/blender/makesrna/intern/rna_space.cc b/source/blender/makesrna/intern/rna_space.cc index 43da7c9f5b4..42d0dbfc523 100644 --- a/source/blender/makesrna/intern/rna_space.cc +++ b/source/blender/makesrna/intern/rna_space.cc @@ -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);