chore: terrain no longer updates at runtime (only editor)

This commit is contained in:
Sara Gerretsen 2026-04-22 00:55:30 +02:00
parent 92f333705d
commit dd7697f690

View file

@ -1,4 +1,5 @@
#include "terrain.h"
#include "core/config/engine.h"
#include "terrain/terrain_chunk.h"
#include "terrain/terrain_modifier.h"
@ -116,6 +117,9 @@ void Terrain::synchronous_generate_terrain() {
}
void Terrain::_notification(int what) {
if (!Engine::get_singleton()->is_editor_hint()) {
return;
}
switch (what) {
default:
return;