chore: terrain no longer updates at runtime (only editor)
This commit is contained in:
parent
92f333705d
commit
dd7697f690
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue