[Bf-blender-cvs] [3eea67e8c54] property-search-ui-v2: Property Search: Update the "search on" flag for the proper region

Hans Goudey noreply at git.blender.org
Thu Aug 20 17:56:16 CEST 2020


Commit: 3eea67e8c549b7cfab1d92703f189abbe015f9de
Author: Hans Goudey
Date:   Thu Aug 20 11:55:47 2020 -0400
Branches: property-search-ui-v2
https://developer.blender.org/rB3eea67e8c549b7cfab1d92703f189abbe015f9de

Property Search: Update the "search on" flag for the proper region

===================================================================

M	source/blender/makesrna/intern/rna_space.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index c362c0fbdda..33ce9cf4d26 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -1815,9 +1815,12 @@ static void rna_SpaceProperties_context_update(Main *UNUSED(bmain),
 static void rna_SpaceProperties_search_filter_update(struct bContext *C,
                                                      struct PointerRNA *UNUSED(ptr))
 {
-  ARegion *region = CTX_wm_region(C);
+  ScrArea *area = CTX_wm_area(C);
 
-  ED_region_search_filter_update(C, region);
+  /* Update the search filter flag for the main region with the panels. */
+  ARegion *main_region = BKE_area_find_region_type(area, RGN_TYPE_WINDOW);
+  BLI_assert(main_region != NULL);
+  ED_region_search_filter_update(C, main_region);
 }
 
 /* Space Console */



More information about the Bf-blender-cvs mailing list