summaryrefslogtreecommitdiff
path: root/servers/visual/visual_server_raster.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-03-12 18:54:02 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-03-12 18:54:02 +0100
commitbe4d58e1203ae35dab97b14f08098f50998d4201 (patch)
tree98848bed6e08ecfeff2d90b0a234fbba2f29ac00 /servers/visual/visual_server_raster.cpp
parent801221d01b705103cac27e7a50e87312cedb8f18 (diff)
parent24bc7d8db7744589672b0b16b269e99160b64e32 (diff)
Merge pull request #3956 from SaracenOne/receive_shadow_flag_fix
Fix 'FLAG_RECEIVE_SHADOWS' flag for GeometryInstances.
Diffstat (limited to 'servers/visual/visual_server_raster.cpp')
-rw-r--r--servers/visual/visual_server_raster.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/visual/visual_server_raster.cpp b/servers/visual/visual_server_raster.cpp
index 2ce0c9a360..6d293f0ce8 100644
--- a/servers/visual/visual_server_raster.cpp
+++ b/servers/visual/visual_server_raster.cpp
@@ -2734,7 +2734,7 @@ void VisualServerRaster::instance_geometry_set_flag(RID p_instance,InstanceFlags
} break;
case INSTANCE_FLAG_RECEIVE_SHADOWS: {
- instance->receive_shadows=p_enabled;
+ instance->data.receive_shadows=p_enabled;
} break;
case INSTANCE_FLAG_DEPH_SCALE: {
@@ -2786,7 +2786,7 @@ bool VisualServerRaster::instance_geometry_get_flag(RID p_instance,InstanceFlags
} break;
case INSTANCE_FLAG_RECEIVE_SHADOWS: {
- return instance->receive_shadows;
+ return instance->data.receive_shadows;
} break;
case INSTANCE_FLAG_DEPH_SCALE: {