Skip to content

Commit

Permalink
feat: add .obj .fbx .stl icon resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Stocker committed Nov 15, 2024
1 parent 13df7a9 commit 3d4b2e7
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog/unreleased/enhancement-3d-model-icons
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Enhancement: Resource type icons for 3d models

Added new resource type icon for .obj and .fbx files
Added new resource type icon for .stl files
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions packages/web-pkg/src/helpers/resource/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ const fileIcon = {
board: {
icon: { name: 'resource-type-board' },
extensions: ['ggs']
},
models3d: {
icon: { name: 'resource-type-models3d' },
extensions: ['obj','fbx']
},
models3d_stl: {
icon: { name: 'resource-type-models3d-stl' },
extensions: ['stl']
}
}

Expand Down

0 comments on commit 3d4b2e7

Please sign in to comment.