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);
       }

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

Reply via email to