mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 05:39:58 +00:00
Change environment_get_glow_hdr_bleed_threshold error handling to use default value.
This commit is contained in:
parent
78d91947f6
commit
6f02377272
1 changed files with 1 additions and 1 deletions
|
|
@ -615,7 +615,7 @@ RS::EnvironmentGlowBlendMode RendererEnvironmentStorage::environment_get_glow_bl
|
||||||
|
|
||||||
float RendererEnvironmentStorage::environment_get_glow_hdr_bleed_threshold(RID p_env) const {
|
float RendererEnvironmentStorage::environment_get_glow_hdr_bleed_threshold(RID p_env) const {
|
||||||
Environment *env = environment_owner.get_or_null(p_env);
|
Environment *env = environment_owner.get_or_null(p_env);
|
||||||
ERR_FAIL_NULL_V(env, 0.0);
|
ERR_FAIL_NULL_V(env, 1.0);
|
||||||
return env->glow_hdr_bleed_threshold;
|
return env->glow_hdr_bleed_threshold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue