[Bf-blender-cvs] [18fc4155fd4] master: Fix customdata interpolation being done multiple times in Weld Modifier
Germano Cavalcante
noreply at git.blender.org
Wed Apr 1 01:57:42 CEST 2020
Commit: 18fc4155fd4299d61789aa0d5b9c1c3f7883636b
Author: Germano Cavalcante
Date: Tue Mar 31 20:57:18 2020 -0300
Branches: master
https://developer.blender.org/rB18fc4155fd4299d61789aa0d5b9c1c3f7883636b
Fix customdata interpolation being done multiple times in Weld Modifier
===================================================================
M source/blender/modifiers/intern/MOD_weld.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_weld.c b/source/blender/modifiers/intern/MOD_weld.c
index 11fd411459c..a7d3280b113 100644
--- a/source/blender/modifiers/intern/MOD_weld.c
+++ b/source/blender/modifiers/intern/MOD_weld.c
@@ -1489,6 +1489,8 @@ static void customdata_weld(
return;
}
+ CustomData_interp(source, dest, (const int *)src_indices, NULL, NULL, count, dest_index);
+
int src_i, dest_i;
int j;
@@ -1544,7 +1546,8 @@ static void customdata_weld(
}
}
else if (CustomData_layer_has_interp(dest, dest_i)) {
- CustomData_interp(source, dest, (const int *)src_indices, NULL, NULL, count, dest_index);
+ /* Already calculated.
+ * TODO: Optimize by exposing `typeInfo->interp`. */
}
else if (CustomData_layer_has_math(dest, dest_i)) {
const int size = CustomData_sizeof(type);
More information about the Bf-blender-cvs
mailing list