mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-15 08:08:26 +02:00
Fix crash on shutdown.
This commit is contained in:
parent
1a5be23b91
commit
26b6fc89f8
@ -482,6 +482,10 @@ void TerrainWorldEditor::edit(TerrainWorld *p_world) {
|
|||||||
|
|
||||||
_gizmo = get_gizmo_from(_world);
|
_gizmo = get_gizmo_from(_world);
|
||||||
|
|
||||||
|
if (!_gizmo.is_valid()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (_tool_mode) {
|
switch (_tool_mode) {
|
||||||
case TOOL_MODE_ADD:
|
case TOOL_MODE_ADD:
|
||||||
case TOOL_MODE_REMOVE:
|
case TOOL_MODE_REMOVE:
|
||||||
|
Loading…
Reference in New Issue
Block a user