Bugfix : don't ignore interaction property on animated objects

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10929 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2012-03-06 15:34:25 +00:00
parent 9bce8f574b
commit c53895c941
3 changed files with 6 additions and 0 deletions

View File

@@ -65,6 +65,8 @@ ThreeDAnimation::ThreeDAnimation(const XMLNode &node)
/** Creates a bullet rigid body for this animated model. */
void ThreeDAnimation::createPhysicsBody(const std::string &shape)
{
if (m_interaction == "ghost") return;
// 1. Determine size of the object
// -------------------------------
Vec3 min, max;

View File

@@ -58,6 +58,8 @@ TrackObject::TrackObject(const XMLNode &xml_node)
std::string sound;
xml_node.get("sound", &sound );
m_interaction = "static";
xml_node.get("interaction", &m_interaction);
xml_node.get("lod_group", &m_lod_group);
std::string type;

View File

@@ -91,6 +91,8 @@ protected:
/** For action trigger objects */
std::string m_action;
std::string m_interaction;
public:
TrackObject(const XMLNode &xml_node);
TrackObject(const core::vector3df& pos, const core::vector3df& hpr,