Closed ivanjermakov closed 1 year ago
@ivanjermakov Definitely a bug!
Hi @ivanjermakov I did some digging and I think the latest main includes a fix for this f8d818a39415adc1bcb458635a1c7b0960f4c05d
You can work off the latest alpha builds in npm for this fix š https://www.npmjs.com/package/excalibur?activeTab=versions
I'm going to post a PR that includes the test case you proposed as well.
Steps to Reproduce
Expected Result
Log the same
Scene
object two timesActual Result
Environment
Workaround
Set child's scene manually:
Possible fix
Populate the actor's scene upon adding it as a child:
src/engine/EntityComponentSystem/Entity.ts:232
It kind of related to #2419, but was not fixed there.