[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60353] trunk/blender/source/blender/ blenkernel/intern/customdata.c: fix [#36781] triangulation modifer creases
Campbell Barton
ideasman42 at gmail.com
Tue Sep 24 05:58:19 CEST 2013
Revision: 60353
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60353
Author: campbellbarton
Date: 2013-09-24 03:58:19 +0000 (Tue, 24 Sep 2013)
Log Message:
-----------
fix [#36781] triangulation modifer creases
new geometry was initializing its original index to 0 (so all edges displayed with the first edges crease value).
now initialize to NONE.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/customdata.c
Modified: trunk/blender/source/blender/blenkernel/intern/customdata.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/customdata.c 2013-09-24 03:31:00 UTC (rev 60352)
+++ trunk/blender/source/blender/blenkernel/intern/customdata.c 2013-09-24 03:58:19 UTC (rev 60353)
@@ -971,6 +971,11 @@
}
}
+static void layerDefault_origindex(void *data, int count)
+{
+ fill_vn_i((int *)data, count, ORIGINDEX_NONE);
+}
+
static void layerInterp_bweight(void **sources, const float *weights,
const float *UNUSED(sub_weights), int count, void *dest)
{
@@ -1077,7 +1082,7 @@
{sizeof(MCol) * 4, "MCol", 4, N_("Col"), NULL, NULL, layerInterp_mcol,
layerSwap_mcol, layerDefault_mcol},
/* 7: CD_ORIGINDEX */
- {sizeof(int), "", 0, NULL, NULL, NULL, NULL, NULL, NULL},
+ {sizeof(int), "", 0, NULL, NULL, NULL, NULL, NULL, layerDefault_origindex},
/* 8: CD_NORMAL */
/* 3 floats per normal vector */
{sizeof(float) * 3, "vec3f", 1, NULL, NULL, NULL, NULL, NULL, NULL},
More information about the Bf-blender-cvs
mailing list