Commit: fe5c13386c590582c259ea9234dd2d0947a04a0b
Author: Jacques Lucke
Date:   Sun Mar 10 14:27:32 2019 +0100
Branches: functions
https://developer.blender.org/rBfe5c13386c590582c259ea9234dd2d0947a04a0b

use control2 as seed

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

M       source/blender/modifiers/intern/MOD_functiondeform.c

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

diff --git a/source/blender/modifiers/intern/MOD_functiondeform.c 
b/source/blender/modifiers/intern/MOD_functiondeform.c
index 5f8dd89f69b..db43d712408 100644
--- a/source/blender/modifiers/intern/MOD_functiondeform.c
+++ b/source/blender/modifiers/intern/MOD_functiondeform.c
@@ -84,9 +84,11 @@ static void do_deformation(
 
        clock_t start = clock();
 
+       int seed = fdmd->control2 * 234132;
+
        for (int i = 0; i < numVerts; i++) {
                FN_tuple_set_float_vector_3(fn_in, 0, vertexCos[i]);
-               FN_tuple_set_int32(fn_in, 1, i);
+               FN_tuple_set_int32(fn_in, 1, seed + i);
                FN_tuple_set_float(fn_in, 2, fdmd->control1);
 
                FN_tuple_call_invoke(body, fn_in, fn_out);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to