[godot] Apply light mask of sprite to mesh instances, closes #2197.

This commit is contained in:
Mario Zechner 2022-11-29 09:47:45 +01:00
parent a7a2d844e1
commit 0a14457f36

View File

@ -536,6 +536,7 @@ void SpineSprite::update_meshes(Ref<SpineSkeleton> skeleton_ref) {
spine::Slot *slot = skeleton->getDrawOrder()[i];
spine::Attachment *attachment = slot->getAttachment();
MeshInstance2D *mesh_instance = mesh_instances[i];
mesh_instance->set_light_mask(get_light_mask());
clear_mesh_instance(mesh_instance);
if (!attachment) {
skeleton_clipper->clipEnd(*slot);