Closed liuxi150 closed 4 months ago
The recent update to the JSONConverter
class in json-converter.ts
involves refining the type casting for the tex
object. Specifically, the target
property is now explicitly cast as spec.SerializedTextureCube
. This change ensures that the tex
object is treated with the correct type, improving type safety and clarity in the code.
File Path | Change Summary |
---|---|
plugin-packages/model/src/gltf/json-converter.ts |
Updated the destructuring assignment of tex to cast it as spec.SerializedTextureCube for the target property. |
In the land of code so bright,
A change was made, a guiding light,
The textures now, with type so true,
A safer path for me and you.
JSONConverter leads the way,
Ensuring clarity every day.
🐇✨
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
JSONConverter
class to correctly cast thetarget
property, ensuring better compatibility and stability.