[Bf-blender-cvs] [ed350d9] master: Fix button to add simple UVs not getting removed after pressing it once.

Antony Riakiotakis noreply at git.blender.org
Mon Nov 24 10:42:38 CET 2014


Commit: ed350d9a52ea4330bde73a6c89171fc6e067e6f7
Author: Antony Riakiotakis
Date:   Mon Nov 24 10:42:14 2014 +0100
Branches: master
https://developer.blender.org/rBed350d9a52ea4330bde73a6c89171fc6e067e6f7

Fix button to add simple UVs not getting removed after pressing it once.

===================================================================

M	source/blender/editors/sculpt_paint/paint_image_proj.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index 39eea9b..3d0952b 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);




More information about the Bf-blender-cvs mailing list