From 16882ca5356d5861e3266b99e9b2434e5cf49073 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 19 Oct 2018 20:10:14 +1100 Subject: Image Space: make 'UV Edit' a separate mode This is needed for splitting UV into its own editor, see: T54744 --- source/blender/makesrna/intern/rna_workspace_api.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/makesrna/intern/rna_workspace_api.c') 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); -- cgit v1.2.3