-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add: GLTF screenshots #794
Conversation
Deploying with Cloudflare Pages
|
aee2af2
to
dba05b0
Compare
Test this pull request
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #794 +/- ##
==========================================
- Coverage 70.92% 70.48% -0.45%
==========================================
Files 394 399 +5
Lines 13074 13199 +125
Branches 1754 1758 +4
==========================================
+ Hits 9273 9303 +30
- Misses 3590 3682 +92
- Partials 211 214 +3
☔ View full report in Codecov by Sentry. |
cb6286d
to
4b0c7db
Compare
Importing models external files does work fine 👍 but importing them from the Asset Packs tab does not create a thumbnail.. seems inconsistent, and considering that the models do have a thumbnail in one tab it shouldn't be a huge effort to copy them to the Local Assets, right? |
cb4f4c9
to
64429a5
Compare
packages/@dcl/inspector/src/lib/data-layer/client/feeded-local-fs.ts
Outdated
Show resolved
Hide resolved
a23a392
to
91bdea3
Compare
966ce05
to
627305c
Compare
627305c
to
35f2e2e
Compare
closes decentraland/sdk#718
🤖 Generated by Copilot at aee2af2
This pull request adds the feature of displaying and saving thumbnails for the asset files in the inspector. It introduces a new
AssetPreview
component that renders a 3D model or an image file and allows taking a screenshot of it. It also adds new RPC methods and messages to the data layer to handle the thumbnails. It modifies theImportAsset
andProjectAssetExplorer
components to use the new functionality and updates the CSS and types files accordingly. It fixes some issues with the GLTF validation and loading and improves the error handling and the image encoding in the data layer. It also adds a mock thumbnail file to the feeded-local-fs and an empty change to the input.ts file.