From 3874720947df842e0ed18fc641de4677130f7948 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Sat, 27 Jan 2018 17:59:09 +0200 Subject: [PATCH] ASE: Add BaseNode constructor which takes name --- code/ASEParser.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/code/ASEParser.h b/code/ASEParser.h index 88fc8dfd7..cfa01b5ad 100644 --- a/code/ASEParser.h +++ b/code/ASEParser.h @@ -264,6 +264,19 @@ struct BaseNode 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 std::string mName;