Skip to content

Commit d7dcc75

Browse files
committed
samples/3D/e3dView: Default coversion to E3D; fixed uninitialized 'ext'
1 parent a720e0c commit d7dcc75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/3D/e3dView/modelView.ec

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ class ModelViewer : Window
221221
bool OnLoadGraphics()
222222
{ // 3DS Loader currently needs DisplaySystem to load materials
223223
char ext[MAX_EXTENSION];
224-
const String convertTo = "glb"; //"e3d";
224+
const String convertTo = "e3d";
225225
// bool is3DS = modelFile && !strcmpi(GetExtension(modelFile, ext), "3ds");
226-
bool isE3D = !strcmpi(ext, convertTo);
226+
bool isE3D = modelFile && !strcmpi(GetExtension(modelFile, ext), convertTo);
227227
char outName[MAX_FILENAME];
228228
DisplaySystem loadDS = 0;//!isE3D ? displaySystem : null;
229229
Map<uint, Bitmap> texturesByID { };

0 commit comments

Comments
 (0)