1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

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

@@ -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: {