[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57706] trunk/blender/source/blender/ editors/sculpt_paint/paint_image_proj.c: fix [#35457] Mirror the U texture coordinate does not work in projection painting
Campbell Barton
ideasman42 at gmail.com
Mon Jun 24 18:06:28 CEST 2013
Revision: 57706
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57706
Author: campbellbarton
Date: 2013-06-24 16:06:27 +0000 (Mon, 24 Jun 2013)
Log Message:
-----------
fix [#35457] Mirror the U texture coordinate does not work in projection painting
regression since 2.61
Modified Paths:
--------------
trunk/blender/source/blender/editors/sculpt_paint/paint_image_proj.c
Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_image_proj.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_image_proj.c 2013-06-24 15:30:37 UTC (rev 57705)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_image_proj.c 2013-06-24 16:06:27 UTC (rev 57706)
@@ -2827,20 +2827,19 @@
* this avoids re-generating the derived mesh just to get the new index */
if (ps->do_layer_clone) {
//int layer_num = CustomData_get_clone_layer(&ps->dm->faceData, CD_MTFACE);
- int layer_num = CustomData_get_clone_layer(&((Mesh *)ps->ob->data)->fdata, CD_MTFACE);
+ int layer_num = CustomData_get_clone_layer(&((Mesh *)ps->ob->data)->pdata, CD_MTEXPOLY);
if (layer_num != -1)
ps->dm_mtface_clone = CustomData_get_layer_n(&ps->dm->faceData, CD_MTFACE, layer_num);
if (ps->dm_mtface_clone == NULL || ps->dm_mtface_clone == ps->dm_mtface) {
ps->do_layer_clone = FALSE;
ps->dm_mtface_clone = NULL;
- printf("ACK!\n");
}
}
if (ps->do_layer_stencil) {
//int layer_num = CustomData_get_stencil_layer(&ps->dm->faceData, CD_MTFACE);
- int layer_num = CustomData_get_stencil_layer(&((Mesh *)ps->ob->data)->fdata, CD_MTFACE);
+ int layer_num = CustomData_get_stencil_layer(&((Mesh *)ps->ob->data)->pdata, CD_MTEXPOLY);
if (layer_num != -1)
ps->dm_mtface_stencil = CustomData_get_layer_n(&ps->dm->faceData, CD_MTFACE, layer_num);
More information about the Bf-blender-cvs
mailing list