Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed references to WeightedMeshAttachment, as it no longer exists. #417

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import com.esotericsoftware.spine.attachments.Attachment;
import com.esotericsoftware.spine.attachments.MeshAttachment;
import com.esotericsoftware.spine.attachments.RegionAttachment;
import com.esotericsoftware.spine.attachments.WeightedMeshAttachment;
import com.uwsoft.editor.renderer.resources.IResourceRetriever;

public class SpineActor extends Actor {
Expand Down Expand Up @@ -41,7 +40,7 @@ private void computeBoundBox() {
Slot slot = skeleton.getSlots().get(i);
Attachment attachment = slot.getAttachment();
if (attachment == null) continue;
if (!((attachment instanceof RegionAttachment) || (attachment instanceof MeshAttachment) || (attachment instanceof WeightedMeshAttachment))) continue;
if (!((attachment instanceof RegionAttachment) || (attachment instanceof MeshAttachment))) continue;
float[] vertices = new float[0];
if ((attachment instanceof RegionAttachment)) {
RegionAttachment region = (RegionAttachment) attachment;
Expand All @@ -53,11 +52,6 @@ private void computeBoundBox() {
region.updateWorldVertices(slot, false);
vertices = region.getWorldVertices();
}
if ((attachment instanceof WeightedMeshAttachment)) {
WeightedMeshAttachment region = (WeightedMeshAttachment) attachment;
region.updateWorldVertices(slot, false);
vertices = region.getWorldVertices();
}


for (int ii = 0, nn = vertices.length; ii < nn; ii += 5) {
Expand Down