diff options
| author | Hiroshi Ogawa | 2017-10-04 17:55:57 +0900 |
|---|---|---|
| committer | Hiroshi Ogawa | 2017-10-04 19:13:07 +0900 |
| commit | 4501a30ce9f86ff06e8e4dc28721136f386aa24e (patch) | |
| tree | 34e28f726df3eda72344dd8ca48ab50bf08f7071 /servers/visual/visual_server_scene.h | |
| parent | b2046836401fe5cdaf4ae6ae32ad3323511b956d (diff) | |
| download | godot-4501a30ce9f86ff06e8e4dc28721136f386aa24e.tar.gz godot-4501a30ce9f86ff06e8e4dc28721136f386aa24e.tar.zst godot-4501a30ce9f86ff06e8e4dc28721136f386aa24e.zip | |
Fix GIProbe light visibility
- Fix https://github.com/godotengine/godot/issues/10535
Diffstat (limited to '')
| -rw-r--r-- | servers/visual/visual_server_scene.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/servers/visual/visual_server_scene.h b/servers/visual/visual_server_scene.h index ac771030c..d30a2108a 100644 --- a/servers/visual/visual_server_scene.h +++ b/servers/visual/visual_server_scene.h @@ -359,6 +359,7 @@ public: float attenuation; float spot_angle; float spot_attenuation; + bool visible; bool operator==(const LightCache &p_cache) { @@ -369,7 +370,8 @@ public: radius == p_cache.radius && attenuation == p_cache.attenuation && spot_angle == p_cache.spot_angle && - spot_attenuation == p_cache.spot_attenuation); + spot_attenuation == p_cache.spot_attenuation && + visible == p_cache.visible); } LightCache() { @@ -380,6 +382,7 @@ public: attenuation = 1.0; spot_angle = 1.0; spot_attenuation = 1.0; + visible = true; } }; |
