Skip to content

Commit

Permalink
GDScript: Fix template_debug compilation with TOOLS/DEBUG macro mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga committed Apr 28, 2023
1 parent 578ca94 commit 7780926
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/gdscript/gdscript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ Error GDScript::reload(bool p_keep_state) {

bool can_run = ScriptServer::is_scripting_enabled() || is_tool();

#ifdef DEBUG_ENABLED
#ifdef TOOLS_ENABLED
if (p_keep_state && can_run && is_valid()) {
_save_old_static_data();
}
Expand Down Expand Up @@ -818,7 +818,7 @@ Error GDScript::reload(bool p_keep_state) {
}
}

#ifdef DEBUG_ENABLED
#ifdef TOOLS_ENABLED
if (can_run && p_keep_state) {
_restore_old_static_data();
}
Expand Down
2 changes: 1 addition & 1 deletion modules/noise/noise_texture_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
images = _normalize(images);
}
Expand Down

0 comments on commit 7780926

Please sign in to comment.