[Bf-blender-cvs] [85104fb] soc-2013-paint: Adding a new normal slot will use float image for better precision.
Antony Riakiotakis
noreply at git.blender.org
Tue Apr 22 19:35:54 CEST 2014
Commit: 85104fb4623ad8a4a54f29c5e49b790fcb37e7e7
Author: Antony Riakiotakis
Date: Tue Apr 22 20:35:38 2014 +0300
https://developer.blender.org/rB85104fb4623ad8a4a54f29c5e49b790fcb37e7e7
Adding a new normal slot will use float image for better precision.
===================================================================
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 a956fc7..3c8f814 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -4858,7 +4858,7 @@ bool proj_paint_add_slot(bContext *C, int type, Material *ma)
BLI_strncat_utf8(imagename, name, FILE_MAX);
/* take the second letter to avoid the ID identifier */
- ima = mtex->tex->ima = BKE_image_add_generated(bmain, width, height, imagename, 32, 0, IMA_GENTYPE_BLANK, color);
+ ima = mtex->tex->ima = BKE_image_add_generated(bmain, width, height, imagename, 32, type == MAP_NORM, IMA_GENTYPE_BLANK, color);
uiIDContextProperty(C, &ptr, &prop);
More information about the Bf-blender-cvs
mailing list