Closed wumaolinmaoan closed 2 months ago
The recent changes involve the initialization of specific properties within two classes, RendererComponent
and VFXItem
. In RendererComponent
, the _priority
property now defaults to 0
, while in VFXItem
, the listIndex
property is initialized to 0
. These adjustments ensure that these properties have defined initial values, promoting consistency and potentially preventing bugs related to uninitialized variables.
File Path | Change Summary |
---|---|
packages/effects-core/src/components/renderer-component.ts |
The _priority property in RendererComponent is now initialized to 0 . |
packages/effects-core/src/vfx-item.ts |
The listIndex property in VFXItem is now initialized to 0 . |
In the code where values lie, Defaults now ensure no sigh. Priority starts at zero's gate, List index too, a clean slate. Bugs beware, for now we see, Initialization sets us free! 🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit