Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_buttons/space_buttons.c
| Show First 20 Lines • Show All 265 Lines • ▼ Show 20 Lines | static void buttons_main_region_draw_tool(const bContext *C, SpaceButs *sbuts, ARegion *ar) | ||||
| } | } | ||||
| } | } | ||||
| static void buttons_main_region_draw(const bContext *C, ARegion *ar) | static void buttons_main_region_draw(const bContext *C, ARegion *ar) | ||||
| { | { | ||||
| /* draw entirely, view changes should be handled here */ | /* draw entirely, view changes should be handled here */ | ||||
| SpaceButs *sbuts = CTX_wm_space_buts(C); | SpaceButs *sbuts = CTX_wm_space_buts(C); | ||||
| if (sbuts->link_flag & SPACE_LINK_FLAG_IS_DYNAMIC) { | |||||
| struct SpaceTypeDyn *ds = BKE_screen_dynspace_from_index(SPACE_BUTS, sbuts->space_subtype); | |||||
| if (ds) { | |||||
| BKE_screen_dynspace_call_main_region_draw(ds, C, ar); | |||||
| } | |||||
| goto finally; | |||||
| } | |||||
| if (sbuts->space_subtype == SB_SUBTYPE_DATA) { | if (sbuts->space_subtype == SB_SUBTYPE_DATA) { | ||||
| buttons_main_region_draw_properties(C, sbuts, ar); | buttons_main_region_draw_properties(C, sbuts, ar); | ||||
| } | } | ||||
| else if (sbuts->space_subtype == SB_SUBTYPE_TOOL) { | else if (sbuts->space_subtype == SB_SUBTYPE_TOOL) { | ||||
| buttons_main_region_draw_tool(C, sbuts, ar); | buttons_main_region_draw_tool(C, sbuts, ar); | ||||
| } | } | ||||
| finally: | |||||
| sbuts->re_align = 0; | sbuts->re_align = 0; | ||||
| sbuts->mainbo = sbuts->mainb; | sbuts->mainbo = sbuts->mainb; | ||||
| } | } | ||||
| static void buttons_main_region_listener( | static void buttons_main_region_listener( | ||||
| bScreen *UNUSED(sc), ScrArea *UNUSED(sa), ARegion *ar, wmNotifier *wmn, | bScreen *UNUSED(sc), ScrArea *UNUSED(sa), ARegion *ar, wmNotifier *wmn, | ||||
| const Scene *UNUSED(scene)) | const Scene *UNUSED(scene)) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 369 Lines • Show Last 20 Lines | |||||