Skip to content

Commit 9f99aa0

Browse files
committed
Fix wrong enum
1 parent e8f506f commit 9f99aa0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

terrain/voxel_node.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "../meshers/blocky/voxel_mesher_blocky.h"
55
#include "../meshers/voxel_mesher.h"
66
#include "../streams/voxel_stream.h"
7-
#include "../util/godot/classes/rendering_server.h"
87
#include "../util/godot/classes/script.h"
98
#include "../util/godot/core/string.h"
109

@@ -155,7 +154,7 @@ void VoxelNode::get_configuration_warnings(PackedStringArray &warnings) const {
155154
Ref<VoxelMesherBlocky> blocky_mesher = mesher;
156155
if (blocky_mesher.is_valid()) {
157156
if (blocky_mesher->get_shadow_occluder_mask() > 0 &&
158-
get_shadow_casting() == RenderingServer::SHADOW_CASTING_SETTING_OFF) {
157+
get_shadow_casting() == GeometryInstance3D::SHADOW_CASTING_SETTING_OFF) {
159158
warnings.append(ZN_TTR(
160159
"Shadow casting is turned off on the terrain, but the mesher generates shadow occluders. You "
161160
"may want to turn that off too."

0 commit comments

Comments
 (0)