Fix BGE bug #7532: TrackTo Actuator does not work correctly if it has a Vertex Parent...
[blender.git] / source / gameengine / SceneGraph / SG_Node.cpp
index 73e1686317386470873602f264751092c8baec5e..ff9a9f7f3714abc51abca6b41ee670cdb9f7a702 100644 (file)
@@ -148,6 +148,16 @@ GetRootSGParent(
        return (m_SGparent ? (const SG_Node*) m_SGparent->GetRootSGParent() : (const SG_Node*) this);
 }
 
+       bool
+SG_Node::
+IsVertexParent()
+{
+       if (m_parent_relation)
+       {
+               return m_parent_relation->IsVertexRelation();
+       }
+       return false;
+}
 
        void 
 SG_Node::