From f3d702339c24ba456ef00a426a9df5aa53b2b5fb Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Sat, 27 Jan 2018 18:14:01 +0200 Subject: [PATCH] ASE: Add Light constructor which takes name --- code/ASEParser.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/code/ASEParser.h b/code/ASEParser.h index cde324216..4a9fd71fe 100644 --- a/code/ASEParser.h +++ b/code/ASEParser.h @@ -369,6 +369,19 @@ struct Light : public BaseNode { } + + //! Construction from an existing name + explicit Light(const std::string &name) + : BaseNode (BaseNode::Light, name) + , mLightType (OMNI) + , mColor (1.f,1.f,1.f) + , mIntensity (1.f) // light is white by default + , mAngle (45.f) + , mFalloff (0.f) + { + } + + LightType mLightType; aiColor3D mColor; ai_real mIntensity;