[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57681] trunk/blender/source/gameengine/ Ketsji/KX_IPO_SGController.cpp: BGE: Fix for [#35737] " Action actuator in property mode don't work with values lower then 1" reported by HG1.

Mitchell Stokes mogurijin at gmail.com
Mon Jun 24 06:24:01 CEST 2013


Revision: 57681
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57681
Author:   moguri
Date:     2013-06-24 04:24:01 +0000 (Mon, 24 Jun 2013)
Log Message:
-----------
BGE: Fix for [#35737] "Action actuator in property mode don't work with values lower then 1" reported by HG1.

IPOs were only set as "initialized" if the current time was greater than 0.0, which is why negative values weren't working.

Modified Paths:
--------------
    trunk/blender/source/gameengine/Ketsji/KX_IPO_SGController.cpp

Modified: trunk/blender/source/gameengine/Ketsji/KX_IPO_SGController.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_IPO_SGController.cpp	2013-06-24 04:21:17 UTC (rev 57680)
+++ trunk/blender/source/gameengine/Ketsji/KX_IPO_SGController.cpp	2013-06-24 04:24:01 UTC (rev 57681)
@@ -132,7 +132,7 @@
 		SG_Spatial* ob = (SG_Spatial*)m_pObject;
 
 		//initialization on the first frame of the IPO
-		if (! m_ipo_start_initialized && currentTime > 0.0) {
+		if (! m_ipo_start_initialized && currentTime != 0.0) {
 			m_ipo_start_point = ob->GetLocalPosition();
 			m_ipo_start_orient = ob->GetLocalOrientation();
 			m_ipo_start_scale = ob->GetLocalScale();




More information about the Bf-blender-cvs mailing list