Skip to content

Commit

Permalink
[ui] declare .stl support in 3D viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencastan committed Jul 22, 2021
1 parent 787c1c4 commit 1122800
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions meshroom/ui/qml/Viewer3D/MediaLoader.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion meshroom/ui/qml/Viewer3D/Viewer3DSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1122800

Please sign in to comment.