diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-19 12:10:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-19 12:15:18 +0300 |
commit | 16882ca5356d5861e3266b99e9b2434e5cf49073 (patch) | |
tree | 9b52395e256e1f032f961c0798723707119e7dac /source/blender/editors/uvedit/uvedit_buttons.c | |
parent | 3c30d3bcbd93da4e4cded76c3fc3a30152a43cb4 (diff) |
Image Space: make 'UV Edit' a separate mode
This is needed for splitting UV into its own editor, see: T54744
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_buttons.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_buttons.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/uvedit/uvedit_buttons.c b/source/blender/editors/uvedit/uvedit_buttons.c index 60500f0211a..317a07bcf96 100644 --- a/source/blender/editors/uvedit/uvedit_buttons.c +++ b/source/blender/editors/uvedit/uvedit_buttons.c @@ -210,6 +210,10 @@ static void do_uvedit_vertex(bContext *C, void *UNUSED(arg), int event) static bool image_panel_uv_poll(const bContext *C, PanelType *UNUSED(pt)) { + SpaceImage *sima = CTX_wm_space_image(C); + if (sima->mode != SI_MODE_UV) { + return false; + } Object *obedit = CTX_data_edit_object(C); return ED_uvedit_test(obedit); } |