diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2009-04-24 23:49:15 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2009-04-24 23:49:15 +0400 |
commit | 252928ab36b03e73b35ea79e36a03e8f982274f6 (patch) | |
tree | c8057adcbfed82dec456f83a9cf7d0ec355cf116 /source/gameengine/Converter/BL_ModifierDeformer.cpp | |
parent | a5f4d7cb53682a944eee0f10bbae77f3b0465417 (diff) |
BGE: removed support for time dependent modifiers, they don't make sense in the GE. Disable modifiers when Bullet soft body is used: bullet needs the original vertex array.
Diffstat (limited to 'source/gameengine/Converter/BL_ModifierDeformer.cpp')
-rw-r--r-- | source/gameengine/Converter/BL_ModifierDeformer.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/gameengine/Converter/BL_ModifierDeformer.cpp b/source/gameengine/Converter/BL_ModifierDeformer.cpp index 09dbe966d0b..c3131559a6f 100644 --- a/source/gameengine/Converter/BL_ModifierDeformer.cpp +++ b/source/gameengine/Converter/BL_ModifierDeformer.cpp @@ -97,10 +97,16 @@ bool BL_ModifierDeformer::HasCompatibleDeformer(Object *ob) { if (!ob->modifiers.first) return false; + // soft body cannot use mesh modifiers + if ((ob->gameflag & OB_SOFT_BODY) != 0) + return false; ModifierData* md; for (md = (ModifierData*)ob->modifiers.first; md; md = (ModifierData*)md->next) { - if (md->mode & eModifierMode_Realtime) - return true; + if (modifier_dependsOnTime(md)) + continue; + if (!(md->mode & eModifierMode_Realtime)) + continue; + return true; } return false; } |