Commit f74918d
Fix Environment Cleanup (#219)
* fix(Environment): add null checks for scene properties before resetting values
- Added null checks for app.scene.skybox and app.scene.envAtlas to prevent potential errors during cleanup.
- Wrapped scene reset logic in a conditional to ensure app.scene exists before attempting to modify its properties.
* fix(Environment): improve cleanup process
- Added a changeset to address an issue with Environment cleanup in the @playcanvas/react package.
- Ensures proper handling during environment reset to prevent potential errors.
* Update packages/lib/src/components/Environment.tsx
Co-authored-by: Copilot <[email protected]>
* Update packages/lib/src/components/Environment.tsx
Co-authored-by: Copilot <[email protected]>
---------
Co-authored-by: Copilot <[email protected]>1 parent f1622bb commit f74918d
File tree
2 files changed
+24
-13
lines changed- .changeset
- packages/lib/src/components
2 files changed
+24
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
96 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
154 | 160 | | |
155 | 161 | | |
156 | 162 | | |
| |||
0 commit comments