[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47380] branches/meshdata_transfer/source/ blender/editors/object/object_vgroup.c: Bugfix to bug from optimizing...
Ove Murberg Henriksen
sorayasilvermoon at hotmail.com
Sun Jun 3 19:16:51 CEST 2012
Revision: 47380
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47380
Author: cyborgmuppet
Date: 2012-06-03 17:16:50 +0000 (Sun, 03 Jun 2012)
Log Message:
-----------
Bugfix to bug from optimizing...
Modified Paths:
--------------
branches/meshdata_transfer/source/blender/editors/object/object_vgroup.c
Modified: branches/meshdata_transfer/source/blender/editors/object/object_vgroup.c
===================================================================
--- branches/meshdata_transfer/source/blender/editors/object/object_vgroup.c 2012-06-03 17:16:20 UTC (rev 47379)
+++ branches/meshdata_transfer/source/blender/editors/object/object_vgroup.c 2012-06-03 17:16:50 UTC (rev 47380)
@@ -503,13 +503,12 @@
/* make node tree */
bvhtree_from_mesh_verts(&tree_mesh_vertices_src, dmesh_src, FLT_EPSILON, 10, 6);
- /* reset nearest */
- nearest.dist = FLT_MAX;
- nearest.index = -1;
-
/* loop trough vertices */
for(i = 0, dv_dst = dv_array_dst; i < me_dst->totvert; i++, dv_dst++, mv_dst++){
+ /* reset nearest */
+ nearest.dist = FLT_MAX;
+
/* transform into target space */
mul_v3_m4v3(tmp_co, tmp_mat, mv_dst->co);
@@ -535,13 +534,12 @@
/* make node tree */
bvhtree_from_mesh_faces(&tree_mesh_faces_src, dmesh_src, FLT_EPSILON, 10, 6);
- /* reset nearest */
- nearest.dist = FLT_MAX;
- nearest.index = -1;
-
/* loop through the vertices */
for(i = 0, dv_dst = dv_array_dst; i < me_dst->totvert; i++, dv_dst++, mv_dst++) {
+ /* reset nearest */
+ nearest.dist = FLT_MAX;
+
/* transform into target space */
mul_v3_m4v3(tmp_co, tmp_mat, mv_dst->co);
@@ -588,13 +586,12 @@
/* make node tree */
bvhtree_from_mesh_faces(&tree_mesh_faces_src, dmesh_src, FLT_EPSILON, 10, 6);
- /* reset nearest */
- nearest.dist = FLT_MAX;
- nearest.index = -1;
-
/* loop through the vertices */
for(i = 0, dv_dst = dv_array_dst; i < me_dst->totvert; i++, dv_dst++, mv_dst++){
+ /* reset nearest */
+ nearest.dist = FLT_MAX;
+
/* transform into target space */
mul_v3_m4v3(tmp_co, tmp_mat, mv_dst->co);
More information about the Bf-blender-cvs
mailing list