[Bf-blender-cvs] [18648be] master: Fix dyntopo not warning anymore when vertex colors or uvs are present.

Antony Riakiotakis noreply at git.blender.org
Fri Aug 14 17:14:13 CEST 2015


Commit: 18648bef7b95fb37951b6f12aac965c3b8a68cd3
Author: Antony Riakiotakis
Date:   Fri Aug 14 17:11:31 2015 +0200
Branches: master
https://developer.blender.org/rB18648bef7b95fb37951b6f12aac965c3b8a68cd3

Fix dyntopo not warning anymore when vertex colors or uvs are present.

We check against loop data now, not tessface data

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

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

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

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 9f1393f..5583067 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -4897,7 +4897,7 @@ static int sculpt_dynamic_topology_toggle_invoke(bContext *C, wmOperator *op, co
 			if (!ELEM(i, CD_MVERT, CD_MEDGE, CD_MFACE, CD_MLOOP, CD_MPOLY, CD_PAINT_MASK, CD_ORIGINDEX) &&
 			    (CustomData_has_layer(&me->vdata, i) ||
 			     CustomData_has_layer(&me->edata, i) ||
-			     CustomData_has_layer(&me->fdata, i)))
+			     CustomData_has_layer(&me->ldata, i)))
 			{
 				vdata = true;
 				break;




More information about the Bf-blender-cvs mailing list