Commit 682c0e5
committed
Skip utility windows during editor initialization
1. Skip editors with no_serialize=true in View:InitializeAllEditors()
- These are utility windows (objectPropertyWindow, collisionView, etc.)
- Should be created on-demand, not during initialization
- Prevents initialization errors when SB.view not yet set
2. Add nil check in ObjectPropertyWindow:init()
- Guards SB.view.selectionManager access
- Needed in case editor is created before SB.view is assigned
- This is defensive - shouldn't happen now with no_serialize skip
Fixes: "attempt to index field 'view' (a nil value)" in object_property_window.lua:3661 parent 48d70f4 commit 682c0e5
2 files changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
367 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
368 | 373 | | |
369 | 374 | | |
370 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
178 | | - | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| 183 | + | |
| 184 | + | |
182 | 185 | | |
183 | 186 | | |
184 | 187 | | |
| |||
0 commit comments