Commit 80096e9
Fix a crash bug in LightmapGI::_assign_lightmaps triggered after reparenting
After reparenting the LightmapGI node, the following `node` would be
initialized to null:
Node *node = get_node(light_data->get_user_path(i));
Which would then crash when de-referenced further down. This fix detects
which the node has been reparented and clears its users.1 parent c394eaa commit 80096e9
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1491 | 1491 | | |
1492 | 1492 | | |
1493 | 1493 | | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
1494 | 1498 | | |
1495 | 1499 | | |
1496 | 1500 | | |
1497 | 1501 | | |
1498 | 1502 | | |
| 1503 | + | |
| 1504 | + | |
1499 | 1505 | | |
1500 | 1506 | | |
1501 | 1507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| |||
0 commit comments