From adda21c3c27d6f496b771ef19e291c9a6676056a Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Mon, 13 Mar 2023 21:13:43 -0400 Subject: [PATCH] samples/3D/e3dView: Default conversion to E3D; fixed uninitialized 'ext' --- samples/3D/e3dView/modelView.ec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/3D/e3dView/modelView.ec b/samples/3D/e3dView/modelView.ec index b0fba85b79..ffc201673e 100644 --- a/samples/3D/e3dView/modelView.ec +++ b/samples/3D/e3dView/modelView.ec @@ -221,9 +221,9 @@ class ModelViewer : Window bool OnLoadGraphics() { // 3DS Loader currently needs DisplaySystem to load materials char ext[MAX_EXTENSION]; - const String convertTo = "glb"; //"e3d"; + const String convertTo = "e3d"; // bool is3DS = modelFile && !strcmpi(GetExtension(modelFile, ext), "3ds"); - bool isE3D = !strcmpi(ext, convertTo); + bool isE3D = modelFile && !strcmpi(GetExtension(modelFile, ext), convertTo); char outName[MAX_FILENAME]; DisplaySystem loadDS = 0;//!isE3D ? displaySystem : null; Map texturesByID { };