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/makesrna/intern/rna_workspace_api.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/makesrna/intern/rna_workspace_api.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_workspace_api.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_workspace_api.c b/source/blender/makesrna/intern/rna_workspace_api.c index fb237299dd0..3f9c419d7e3 100644 --- a/source/blender/makesrna/intern/rna_workspace_api.c +++ b/source/blender/makesrna/intern/rna_workspace_api.c @@ -103,8 +103,9 @@ static void rna_WorkspaceTool_refresh_from_context( } } else if ((tref->space_type == SPACE_IMAGE) && - (tref->mode == SI_MODE_VIEW) && - (ob->mode & OB_MODE_EDIT)) + (tref->mode == SI_MODE_UV) && + (ob->mode & + OB_MODE_EDIT)) { const EnumPropertyItem *items = rna_enum_uv_sculpt_tool_items; const int i = RNA_enum_from_value(items, ts->uv_sculpt_tool); |