From dd7697f690cbc987d72be142c237e3551e7dca00 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 22 Apr 2026 00:55:30 +0200 Subject: [PATCH] chore: terrain no longer updates at runtime (only editor) --- modules/terrain/terrain.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/terrain/terrain.cpp b/modules/terrain/terrain.cpp index a40c9fa0..c4981e7c 100644 --- a/modules/terrain/terrain.cpp +++ b/modules/terrain/terrain.cpp @@ -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;