[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39894] trunk/blender/source/gameengine/ Converter/BL_ActionActuator.cpp: BGE animations: Fixing a crash that would happen if the property for a property mode action actuator was invalid .

Mitchell Stokes mogurijin at gmail.com
Sat Sep 3 21:33:07 CEST 2011


Revision: 39894
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39894
Author:   moguri
Date:     2011-09-03 19:33:07 +0000 (Sat, 03 Sep 2011)
Log Message:
-----------
BGE animations: Fixing a crash that would happen if the property for a property mode action actuator was invalid.

Modified Paths:
--------------
    trunk/blender/source/gameengine/Converter/BL_ActionActuator.cpp

Modified: trunk/blender/source/gameengine/Converter/BL_ActionActuator.cpp
===================================================================
--- trunk/blender/source/gameengine/Converter/BL_ActionActuator.cpp	2011-09-03 15:36:36 UTC (rev 39893)
+++ trunk/blender/source/gameengine/Converter/BL_ActionActuator.cpp	2011-09-03 19:33:07 UTC (rev 39894)
@@ -217,6 +217,9 @@
 		case ACT_ACTION_FROM_PROP:
 			CValue* prop = GetParent()->GetProperty(m_propname);
 
+			// If we don't have a property, we can't do anything, so just bail
+			if (!prop) return false;
+
 			playtype = BL_Action::ACT_MODE_PLAY;
 			start = end = prop->GetNumber();
 




More information about the Bf-blender-cvs mailing list