-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
Fix multi scene script error and GC problem #1724
Fix multi scene script error and GC problem #1724
Conversation
for (let i = scripts.length - 1; i >= 0; --i) { | ||
const script = scripts.get(i); | ||
script._waitHandlingInValid || script.onBeginRender(camera); | ||
script?.onBeginRender(camera); |
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.
scripts.get(i)?.onBeginRender(camera);
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.
done
* dev/1.1: fix: glTF parser error and test case (galacean#1723) # Conflicts: # tests/src/loader/GLTFLoader.test.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.
+1
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## dev/1.1 #1724 +/- ##
===========================================
+ Coverage 61.37% 61.46% +0.08%
===========================================
Files 410 430 +20
Lines 21834 22541 +707
Branches 3140 3201 +61
===========================================
+ Hits 13401 13854 +453
- Misses 7244 7471 +227
- Partials 1189 1216 +27
☔ View full report in Codecov by Sentry. |
* dev/1.1: Fix delay add scene can't fire `onEnbaleInScene` bug (galacean#1725) Fix multi scene script error and GC problem (galacean#1724) fix: glTF parser error and test case (galacean#1723) fix: Script onDisable error (galacean#1719) "v1.1.0-alpha.2" Add physic unit test timeout (galacean#1717) "v1.0.0-beta.20" Fix `PhysicManager` fixedTimeStep less than 0 bug (galacean#1715) Fix physx unit test (galacean#1714) Fix a series of physical system problems (galacean#1712) Fix avoid destroyed material error (galacean#1705) # Conflicts: # packages/core/package.json # packages/design/package.json # packages/draco/package.json # packages/galacean/package.json # packages/loader/package.json # packages/math/package.json # packages/physics-lite/package.json # packages/physics-physx/package.json # packages/rhi-webgl/package.json
Please check if the PR fulfills these requirements