[Bf-blender-cvs] [fd38892] hair_immediate_fixes: Minor fix when gravity code is disabled.

Lukas Tönne noreply at git.blender.org
Tue Sep 16 14:44:54 CEST 2014


Commit: fd388925c753df550d0d5ddc6dd2b6cf2fa838f6
Author: Lukas Tönne
Date:   Mon Sep 15 17:41:53 2014 +0200
Branches: hair_immediate_fixes
https://developer.blender.org/rBfd388925c753df550d0d5ddc6dd2b6cf2fa838f6

Minor fix when gravity code is disabled.

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

M	source/blender/physics/intern/BPH_mass_spring.cpp

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

diff --git a/source/blender/physics/intern/BPH_mass_spring.cpp b/source/blender/physics/intern/BPH_mass_spring.cpp
index 974fe67..1c45e1e 100644
--- a/source/blender/physics/intern/BPH_mass_spring.cpp
+++ b/source/blender/physics/intern/BPH_mass_spring.cpp
@@ -407,8 +407,6 @@ static void cloth_calc_force(ClothModifierData *clmd, float UNUSED(frame), ListB
 		mul_v3_v3fl(gravity, clmd->scene->physics_settings.gravity, 0.001f * clmd->sim_parms->effector_weights->global_gravity);
 	}
 	BPH_mass_spring_force_gravity(data, gravity);
-#else
-	zero_lfvector(lF, numverts);
 #endif
 
 	// XXX TODO




More information about the Bf-blender-cvs mailing list