Skip to content

Commit

Permalink
warning if override contains compat defines when not in compat mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtarsia committed Oct 1, 2024
1 parent 52f8265 commit 36be33d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/terrain_3d_material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ void Terrain3DMaterial::_update_shader() {
}
}
}
if (!_compatibility) {
if (code.contains("COMPATIBILITY_DEFINES")) {
LOG(WARN, "Remove COMPATIBILITY_DEFINES in override shader if not using compatibiltiy renderer");
}
}
if (!_shader_override->is_connected("changed", callable_mp(this, &Terrain3DMaterial::_update_shader))) {
LOG(DEBUG, "Connecting changed signal to _update_shader()");
_shader_override->connect("changed", callable_mp(this, &Terrain3DMaterial::_update_shader));
Expand Down

0 comments on commit 36be33d

Please sign in to comment.