Fix 'FLAG_RECEIVE_SHADOWS' flag for GeometryInstances so that turning it off now correctly disables shadows from affecting the instance.

This commit is contained in:
Saracen
2016-03-06 17:00:29 +00:00
parent 8b1dcbfe4d
commit 24bc7d8db7
4 changed files with 19 additions and 8 deletions

View File

@ -169,7 +169,6 @@ class VisualServerRaster : public VisualServer {
AABB transformed_aabb;
uint32_t object_ID;
bool visible;
bool receive_shadows;
bool visible_in_all_rooms;
uint32_t layer_mask;
float draw_range_begin;
@ -300,7 +299,7 @@ class VisualServerRaster : public VisualServer {
update=false;
visible=true;
data.cast_shadows=SHADOW_CASTING_SETTING_ON;
receive_shadows=true;
data.receive_shadows=true;
data.depth_scale=false;
data.billboard=false;
data.billboard_y=false;