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
path: root/source
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2014-11-24 12:42:14 +0300
committerAntony Riakiotakis <kalast@gmail.com>2014-11-24 12:42:23 +0300
commited350d9a52ea4330bde73a6c89171fc6e067e6f7 (patch)
treebe76d744f5d7400a000112f2f15f2f3286861987 /source
parent7b0d6a1e6c8233722731e77cd1b4641285c0c62d (diff)
Fix button to add simple UVs not getting removed after pressing it once.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_proj.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index 39eea9b571e..3d0952b5aaa 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -5129,6 +5129,8 @@ static bool proj_paint_add_slot(bContext *C, wmOperator *op)
DAG_id_tag_update(&ma->id, 0);
ED_area_tag_redraw(CTX_wm_area(C));
+ BKE_paint_proj_mesh_data_check(scene, ob, NULL, NULL, NULL, NULL);
+
return true;
}
}
@@ -5287,6 +5289,8 @@ static int add_simple_uvs_exec(bContext *C, wmOperator *UNUSED(op))
if (synch_selection)
scene->toolsettings->uv_flag |= UV_SYNC_SELECTION;
+ BKE_paint_proj_mesh_data_check(scene, ob, NULL, NULL, NULL, NULL);
+
DAG_id_tag_update(ob->data, 0);
WM_event_add_notifier(C, NC_GEOM | ND_DATA, ob->data);
WM_event_add_notifier(C, NC_SCENE | ND_TOOLSETTINGS, scene);