From 1365a939e9ba911eb236f69bf67c53b7a69681c3 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 26 Apr 2024 15:06:30 +0200 Subject: [PATCH] App: Change default constructor of Material class to use DEFAULT instead of STEEL --- src/App/Material.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/App/Material.cpp b/src/App/Material.cpp index 8962dc33d7..389e2e94c1 100644 --- a/src/App/Material.cpp +++ b/src/App/Material.cpp @@ -39,16 +39,15 @@ using namespace App; Material::Material() : shininess {0.9000F} , transparency {} - , _matType {USER_DEFINED} + , _matType {} { - setType(STEEL); - setType(USER_DEFINED); + setType(DEFAULT); } Material::Material(const char* MatName) : shininess {0.9000F} , transparency {} - , _matType {USER_DEFINED} + , _matType {} { set(MatName); } @@ -56,7 +55,7 @@ Material::Material(const char* MatName) Material::Material(MaterialType MatType) : shininess {0.9000F} , transparency {} - , _matType {USER_DEFINED} + , _matType {} { setType(MatType); }