Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-06-26 16:39:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-06-26 16:39:06 +0400
commit11cdc2a002c5baf1a1405e7dc246cacbd2d9392d (patch)
tree7a816d48b63e57320ce4ff7716c760091cb17912 /source/gameengine/Converter
parentac25593479b2b45908312f83d255cd7d225b4ba2 (diff)
Python API/Game engine fixes, dosn't affect 2.47
* Action FrameProp was checking if the string was true, not that it contained any text. * Added GameObject.getVisible() since there is already a getVisible * Added GameObject.getPropertyNames() Needed in apricot so Franky can collect and throw items in the level without having the names defined elsewhere or modifying his game logic which is stored in a separate blend file.
Diffstat (limited to 'source/gameengine/Converter')
-rw-r--r--source/gameengine/Converter/BL_ActionActuator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Converter/BL_ActionActuator.cpp b/source/gameengine/Converter/BL_ActionActuator.cpp
index 83be5d3a14f..5050da3fe7f 100644
--- a/source/gameengine/Converter/BL_ActionActuator.cpp
+++ b/source/gameengine/Converter/BL_ActionActuator.cpp
@@ -350,7 +350,7 @@ bool BL_ActionActuator::Update(double curtime, bool frame)
}
/* Set the property if its defined */
- if (m_framepropname) {
+ if (m_framepropname[0] != '\0') {
CValue* propowner = GetParent();
CValue* oldprop = propowner->GetProperty(m_framepropname);
CValue* newval = new CFloatValue(m_localtime);