Skip to content

Commit

Permalink
samples/3D/e3dView: Default conversion to E3D; fixed uninitialized 'ext'
Browse files Browse the repository at this point in the history
  • Loading branch information
jerstlouis committed Mar 14, 2023
1 parent a720e0c commit adda21c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/3D/e3dView/modelView.ec
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint, Bitmap> texturesByID { };
Expand Down

0 comments on commit adda21c

Please sign in to comment.