[ui] declare .stl support in 3D viewer

This commit is contained in:
Fabien Castan 2021-07-17 23:00:33 +02:00
parent e634215fdd
commit ca03f672dd
2 changed files with 2 additions and 1 deletions

View file

@ -49,6 +49,7 @@ import Utils 1.0
case ".abc": if(Viewer3DSettings.supportAlembic) component = abcLoaderEntityComponent; break;
case ".exr": if(Viewer3DSettings.supportDepthMap) component = exrLoaderComponent; break;
case ".obj":
case ".stl":
default: component = sceneLoaderEntityComponent; break;
}

View file

@ -13,7 +13,7 @@ Item {
// supported 3D files extensions
readonly property var supportedExtensions: {
var exts = ['.obj'];
var exts = ['.obj', '.stl'];
if(supportAlembic)
exts.push('.abc');
if(supportDepthMap)