Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_buttons/buttons_context.c
| Show First 20 Lines • Show All 753 Lines • ▼ Show 20 Lines | |||||
| bool ED_buttons_should_sync_with_outliner(const bContext *C, | bool ED_buttons_should_sync_with_outliner(const bContext *C, | ||||
| const SpaceProperties *sbuts, | const SpaceProperties *sbuts, | ||||
| ScrArea *area) | ScrArea *area) | ||||
| { | { | ||||
| ScrArea *active_area = CTX_wm_area(C); | ScrArea *active_area = CTX_wm_area(C); | ||||
| const bool auto_sync = ED_area_has_shared_border(active_area, area) && | const bool auto_sync = ED_area_has_shared_border(active_area, area) && | ||||
| sbuts->outliner_sync == PROPERTIES_SYNC_AUTO; | sbuts->outliner_sync == PROPERTIES_SYNC_AUTO; | ||||
| return auto_sync || sbuts->outliner_sync == PROPERTIES_SYNC_ON; | return auto_sync || sbuts->outliner_sync == PROPERTIES_SYNC_ALWAYS; | ||||
| } | } | ||||
| void ED_buttons_set_context(const bContext *C, | void ED_buttons_set_context(const bContext *C, | ||||
| SpaceProperties *sbuts, | SpaceProperties *sbuts, | ||||
| PointerRNA *ptr, | PointerRNA *ptr, | ||||
| const int context) | const int context) | ||||
| { | { | ||||
| ButsContextPath path; | ButsContextPath path; | ||||
| ▲ Show 20 Lines • Show All 508 Lines • Show Last 20 Lines | |||||