Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-10-19 12:10:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-10-19 12:15:18 +0300
commit16882ca5356d5861e3266b99e9b2434e5cf49073 (patch)
tree9b52395e256e1f032f961c0798723707119e7dac /source/blender/editors/space_image
parent3c30d3bcbd93da4e4cded76c3fc3a30152a43cb4 (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/space_image')
-rw-r--r--source/blender/editors/space_image/image_edit.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/editors/space_image/image_edit.c b/source/blender/editors/space_image/image_edit.c
index 4388accc534..cde89230df8 100644
--- a/source/blender/editors/space_image/image_edit.c
+++ b/source/blender/editors/space_image/image_edit.c
@@ -361,8 +361,14 @@ bool ED_space_image_show_paint(SpaceImage *sima)
bool ED_space_image_show_uvedit(SpaceImage *sima, Object *obedit)
{
- if (sima && (ED_space_image_show_render(sima) || ED_space_image_show_paint(sima)))
- return false;
+ if (sima) {
+ if (ED_space_image_show_render(sima)) {
+ return false;
+ }
+ if (sima->mode != SI_MODE_UV) {
+ return false;
+ }
+ }
if (obedit && obedit->type == OB_MESH) {
struct BMEditMesh *em = BKE_editmesh_from_object(obedit);