Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_gizmo_2d.c
| Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
| #include "WM_message.h" | #include "WM_message.h" | ||||
| #include "WM_types.h" | #include "WM_types.h" | ||||
| #include "ED_gizmo_library.h" | #include "ED_gizmo_library.h" | ||||
| #include "ED_gizmo_utils.h" | #include "ED_gizmo_utils.h" | ||||
| #include "ED_image.h" | #include "ED_image.h" | ||||
| #include "ED_screen.h" | #include "ED_screen.h" | ||||
| #include "ED_uvedit.h" | #include "ED_uvedit.h" | ||||
| #include "ED_sequencer.h" | |||||
| #include "SEQ_iterator.h" | #include "SEQ_iterator.h" | ||||
| #include "SEQ_sequencer.h" | #include "SEQ_sequencer.h" | ||||
| #include "SEQ_time.h" | #include "SEQ_time.h" | ||||
| #include "SEQ_transform.h" | #include "SEQ_transform.h" | ||||
| #include "transform.h" /* own include */ | #include "transform.h" /* own include */ | ||||
| Show All 19 Lines | static bool gizmo2d_generic_poll(const bContext *C, wmGizmoGroupType *gzgt) | ||||
| switch (area->spacetype) { | switch (area->spacetype) { | ||||
| case SPACE_IMAGE: { | case SPACE_IMAGE: { | ||||
| SpaceImage *sima = area->spacedata.first; | SpaceImage *sima = area->spacedata.first; | ||||
| Object *obedit = CTX_data_edit_object(C); | Object *obedit = CTX_data_edit_object(C); | ||||
| if (!ED_space_image_show_uvedit(sima, obedit)) { | if (!ED_space_image_show_uvedit(sima, obedit)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| case SPACE_SEQ: { | |||||
| SpaceSeq *sseq = area->spacedata.first; | |||||
| if (!ED_space_sequencer_check_show_imbuf(sseq)) { | |||||
| return false; | |||||
| } | |||||
| } | |||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| static void gizmo2d_pivot_point_message_subscribe(struct wmGizmoGroup *gzgroup, | static void gizmo2d_pivot_point_message_subscribe(struct wmGizmoGroup *gzgroup, | ||||
| struct wmMsgBus *mbus, | struct wmMsgBus *mbus, | ||||
| /* Additional args. */ | /* Additional args. */ | ||||
| ▲ Show 20 Lines • Show All 744 Lines • Show Last 20 Lines | |||||