[Bf-blender-cvs] [3e5fb5d83ea] functions: fix using wrong length

Jacques Lucke noreply at git.blender.org
Fri Jun 21 14:56:23 CEST 2019


Commit: 3e5fb5d83ea2a1105d8991665d4cc077ab728332
Author: Jacques Lucke
Date:   Fri Jun 21 14:56:13 2019 +0200
Branches: functions
https://developer.blender.org/rB3e5fb5d83ea2a1105d8991665d4cc077ab728332

fix using wrong length

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

M	source/blender/simulations/bparticles/events.cpp

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

diff --git a/source/blender/simulations/bparticles/events.cpp b/source/blender/simulations/bparticles/events.cpp
index ab47addf9f2..073e5561573 100644
--- a/source/blender/simulations/bparticles/events.cpp
+++ b/source/blender/simulations/bparticles/events.cpp
@@ -78,7 +78,7 @@ class MeshCollisionEvent : public Event {
                            (void *)m_treedata);
 
       if (hit.index != -1) {
-        float time_factor = hit.dist / direction.length();
+        float time_factor = hit.dist / length;
         r_filtered_indices.append(i);
         r_time_factors.append(time_factor);
       }



More information about the Bf-blender-cvs mailing list