From 60d78f1701af1f12258f560fc0fc72173193bd44 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 23 Jan 2018 19:43:15 +0200 Subject: [PATCH] ASE: Add Material constructor which takes material name --- code/ASEParser.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/ASEParser.h b/code/ASEParser.h index 4e2d6f7ef..d9a74e645 100644 --- a/code/ASEParser.h +++ b/code/ASEParser.h @@ -74,6 +74,14 @@ struct Material : public D3DS::Material {} + //! Constructor with explicit name + explicit Material(const std::string &name) + : D3DS::Material(name) + , pcInstance(NULL) + , bNeed (false) + {} + + Material(const Material &other) = default; Material(Material &&other) = default;