[Bf-blender-cvs] [b27abb53] hair_system: Fixed missing variable assignment when calculating hair root animation for particle hair.
Lukas Tönne
noreply at git.blender.org
Mon Aug 25 17:33:54 CEST 2014
Commit: b27abb534eb172b70adb7e9455a53b0e8445270a
Author: Lukas Tönne
Date: Mon Aug 25 17:34:20 2014 +0200
Branches: hair_system
https://developer.blender.org/rBb27abb534eb172b70adb7e9455a53b0e8445270a
Fixed missing variable assignment when calculating hair root animation
for particle hair.
===================================================================
M source/blender/hair/intern/HAIR_scene.cpp
===================================================================
diff --git a/source/blender/hair/intern/HAIR_scene.cpp b/source/blender/hair/intern/HAIR_scene.cpp
index bdc1c48..fe78e21 100644
--- a/source/blender/hair/intern/HAIR_scene.cpp
+++ b/source/blender/hair/intern/HAIR_scene.cpp
@@ -361,8 +361,8 @@ void SceneConverter::update_solver_data_externals(SolverData *data, SolverForces
}
/* send to world space (normal matrix should be changed to inverse transpose here) */
- transform_point(mat, curve->root1.co);
- transform_direction(mat, curve->root1.nor);
+ curve->root1.co = transform_point(mat, curve->root1.co);
+ curve->root1.nor = transform_direction(mat, curve->root1.nor);
/* transform can introduce scale, have to renormalize */
normalize_v3_v3(curve->root1.nor, curve->root1.nor);
normalize_v3_v3(curve->root1.tan, float3(0,0,1) - dot_v3v3(float3(0,0,1), curve->root1.nor) * curve->root1.nor);
More information about the Bf-blender-cvs
mailing list