Skip to content
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 Compoment/Script onDisable and onEnable bug #1087

Merged
merged 2 commits into from
Oct 14, 2022

Conversation

GuoLei1990
Copy link
Member

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

@GuoLei1990 GuoLei1990 added the bug Something isn't working label Oct 9, 2022
@GuoLei1990 GuoLei1990 self-assigned this Oct 9, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 9, 2022

Codecov Report

Base: 36.47% // Head: 36.52% // Increases project coverage by +0.05% 🎉

Coverage data is based on head (2f6219a) compared to base (ea58e24).
Patch coverage: 50.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1087      +/-   ##
==========================================
+ Coverage   36.47%   36.52%   +0.05%     
==========================================
  Files         336      336              
  Lines       14506    14508       +2     
  Branches     2228     2227       -1     
==========================================
+ Hits         5291     5299       +8     
+ Misses       8639     8632       -7     
- Partials      576      577       +1     
Impacted Files Coverage Δ
packages/core/src/Component.ts 76.47% <50.00%> (+7.72%) ⬆️
packages/core/src/DisorderedArray.ts 40.00% <0.00%> (-10.00%) ⬇️
packages/math/src/Color.ts 85.71% <0.00%> (-3.58%) ⬇️
packages/core/src/ComponentsManager.ts 53.09% <0.00%> (+0.88%) ⬆️
packages/core/src/Entity.ts 78.29% <0.00%> (+1.70%) ⬆️
packages/core/src/Script.ts 73.33% <0.00%> (+10.00%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@GuoLei1990 GuoLei1990 linked an issue Oct 9, 2022 that may be closed by this pull request
@GuoLei1990 GuoLei1990 requested a review from luzhuang October 13, 2022 14:16
Copy link
Collaborator

@cptbtptpbcptdtptp cptbtptpbcptdtptp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@GuoLei1990 GuoLei1990 merged commit 7eb64bc into galacean:main Oct 14, 2022
@GuoLei1990 GuoLei1990 deleted the pr/fix-entity-bug branch October 14, 2022 17:18
GuoLei1990 added a commit to GuoLei1990/galacean-engine that referenced this pull request Oct 17, 2022
* commit 'b391c7441fc934139bf74d997424627b33ea9779':
  Fix physics lite raycast bug (galacean#999) (galacean#1104)
  fix: resource parser error (galacean#1105)
  v0.8.0-beta.31
  feat: add release action (galacean#1102)
  Fix `Compoment`/`Script` `onDisable` and  `onEnable` bug  (galacean#1087)
  Revert "fix: onDisable() call back scene is null bug (galacean#1098)" (galacean#1101)
  fix: onDisable() call back scene is null bug (galacean#1098)
  Add AnimatorController loader  for AniamtorController Editor (galacean#1078)
  v0.8.0-beta.30
  fix: pointer moving delta bug (galacean#1083)
  v0.8.0-beta.29
  fix: texture load bug in miniprogram (galacean#1077)
  v0.8.0-beta.28
  v0.8.0-beta.27
  Fix Material Resolved with Texture References (galacean#1076)
  Support glTF materials remap (galacean#1034)
  Fix wrong word recieveShadow to receiveShadow (galacean#1065)

# Conflicts:
#	lerna.json
#	packages/core/package.json
#	packages/core/src/shadow/Extension.ts
#	packages/core/src/shadow/ShadowFeature.ts
#	packages/design/package.json
#	packages/draco/package.json
#	packages/loader/package.json
#	packages/loader/src/index.ts
#	packages/loader/src/resource-deserialize/index.ts
#	packages/loader/src/resource-deserialize/resources/animatorController/type.ts
#	packages/math/package.json
#	packages/oasis-engine/package.json
#	packages/physics-lite/package.json
#	packages/physics-physx/package.json
#	packages/rhi-webgl/package.json
#	tests/package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: set enabled does not sync the state of _phasedActive
3 participants