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/windowmanager/intern/wm_toolsystem.c
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/windowmanager/intern/wm_toolsystem.c')
-rw-r--r--source/blender/windowmanager/intern/wm_toolsystem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_toolsystem.c b/source/blender/windowmanager/intern/wm_toolsystem.c
index 5584fada329..e835ece0c6c 100644
--- a/source/blender/windowmanager/intern/wm_toolsystem.c
+++ b/source/blender/windowmanager/intern/wm_toolsystem.c
@@ -214,7 +214,7 @@ static void toolsystem_ref_link(bContext *C, WorkSpace *workspace, bToolRef *tre
}
}
if ((tref->space_type == SPACE_IMAGE) &&
- (tref->mode == SI_MODE_VIEW))
+ (tref->mode == SI_MODE_UV))
{
/* Note that switching uv-sculpt boolean is a hack at the moment.
* It would be best to make this either an operator or a higher level mode (like mesh-object sculpt mode). */
@@ -259,7 +259,7 @@ static void toolsystem_ref_link(bContext *C, WorkSpace *workspace, bToolRef *tre
else {
/* XXX, this part is weak, disables uv_sculpt when non uv-tool set. */
if ((tref->space_type == SPACE_IMAGE) &&
- (tref->mode == SI_MODE_VIEW))
+ (tref->mode == SI_MODE_UV))
{
Main *bmain = CTX_data_main(C);
wmWindowManager *wm = bmain->wm.first;