You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Validates set_sdfgi_cascades argument range
This commit is contained in:
@@ -449,6 +449,7 @@ bool Environment::is_sdfgi_enabled() const {
|
||||
}
|
||||
|
||||
void Environment::set_sdfgi_cascades(SDFGICascades p_cascades) {
|
||||
ERR_FAIL_INDEX(p_cascades, SDFGI_CASCADES_8 + 1);
|
||||
sdfgi_cascades = p_cascades;
|
||||
_update_sdfgi();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user