-
-
Notifications
You must be signed in to change notification settings - Fork 311
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
Support glTF progress #1835
Support glTF progress #1835
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev/1.2 #1835 +/- ##
===========================================
+ Coverage 66.92% 66.93% +0.01%
===========================================
Files 471 471
Lines 23834 23860 +26
Branches 3399 3403 +4
===========================================
+ Hits 15950 15971 +21
- Misses 6694 6696 +2
- Partials 1190 1193 +3 ☔ View full report in Codecov by Sentry. |
* dev/1.2: (31 commits) Add sunSource (galacean#1823) Fix(ShaderLab): make `UsePass` directive compatible with all builtin shader names (galacean#1855) feat: ParticleGenerator support simulationSpeed (galacean#1854) fix: sprite destroy (galacean#1852) "v1.1.0-beta.18" Fix quaternion to euler bug (galacean#1851) Fix ColorOverLifetimeModule mode invalid bug (galacean#1850) fix: no autoplay when set animatorController after enable (galacean#1843) Refactor `glTFResource` (galacean#1831) Fix material destoroy bug (galacean#1847) Fix Sprite can't batch bug caused by material instance (galacean#1830) "v1.1.0-beta.17" fix: glTF animation parse bug (galacean#1845) fix: mesh decoder (galacean#1844) "v1.1.0-beta.16" Fix blendShape crossFade bug (galacean#1841) fix: ignore ambient in 2d template (galacean#1836) "v1.1.0-beta.15" Fix blendShapeAnimation crossFade bug (galacean#1840) fix: ignore case of asset url (galacean#1809) ... # Conflicts: # packages/loader/src/gltf/parser/GLTFParserContext.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example crash
First,You can ignore synchronized things, such as entity |
glTF: progress = (json[D]+buffer[D]+texture[D+L]+animation[L]+skin[L]+scene[L])/ totalCount |
# Conflicts: # packages/core/src/asset/AssetPromise.ts # tests/src/core/AssetPromise.test.ts
@@ -71,29 +74,44 @@ export class AssetPromise<T> implements PromiseLike<T> { | |||
if (this._state === PromiseState.Pending) { | |||
resolve(value); | |||
this._state = PromiseState.Fulfilled; | |||
this._onProgressCallback = undefined; | |||
this._onProgressItemsCallback = undefined; | |||
this._onProgressDetailsCallback = undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To prevent memory leaks?
Please check if the PR fulfills these requirements
support #1651
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Other information: