Explorar el Código

ASE: Add BaseNode constructor which takes name

Turo Lamminen hace 8 años
padre
commit
3874720947
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. 13 0
      code/ASEParser.h

+ 13 - 0
code/ASEParser.h

@@ -264,6 +264,19 @@ struct BaseNode
         mTargetPosition.x = qnan;
         mTargetPosition.x = qnan;
     }
     }
 
 
+
+    //! Construction from an existing name
+    BaseNode(Type _mType, const std::string &name)
+    : mType         (_mType)
+    , mName         (name)
+    , mProcessed    (false)
+    {
+        // Set mTargetPosition to qnan
+        const ai_real qnan = get_qnan();
+        mTargetPosition.x = qnan;
+    }
+
+
     //! Name of the mesh
     //! Name of the mesh
     std::string mName;
     std::string mName;