GDScript: Fix template_debug compilation with TOOLS/DEBUG macro mismatch
This commit is contained in:
parent
578ca94ef6
commit
7780926b25
@ -741,7 +741,7 @@ Error GDScript::reload(bool p_keep_state) {
|
|||||||
|
|
||||||
bool can_run = ScriptServer::is_scripting_enabled() || is_tool();
|
bool can_run = ScriptServer::is_scripting_enabled() || is_tool();
|
||||||
|
|
||||||
#ifdef DEBUG_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
if (p_keep_state && can_run && is_valid()) {
|
if (p_keep_state && can_run && is_valid()) {
|
||||||
_save_old_static_data();
|
_save_old_static_data();
|
||||||
}
|
}
|
||||||
@ -818,7 +818,7 @@ Error GDScript::reload(bool p_keep_state) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
if (can_run && p_keep_state) {
|
if (can_run && p_keep_state) {
|
||||||
_restore_old_static_data();
|
_restore_old_static_data();
|
||||||
}
|
}
|
||||||
|
@ -156,7 +156,7 @@ TypedArray<Image> NoiseTexture3D::_generate_texture() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Normalize on whole texture at once rather than on each image individualy as it would result in visible artifacts on z (depth) axis.
|
// Normalize on whole texture at once rather than on each image individually as it would result in visible artifacts on z (depth) axis.
|
||||||
if (normalize) {
|
if (normalize) {
|
||||||
images = _normalize(images);
|
images = _normalize(images);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user