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

Mesh animation fixed #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions spinehaxe/SkeletonJson.hx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class SkeletonJson {
var weights:Array<Float> = new Array<Float>();
var bones:Array<Int> = new Array<Int>();
var i = 0, n = vertices.length;
/*while (i < n) {
while (i < n) {
var boneCount:Int = Std.int(vertices[i++]);
bones.push(boneCount);
var nn:Int = i + boneCount * 4;
Expand All @@ -290,7 +290,7 @@ class SkeletonJson {
weights.push(vertices[i + 3]);
i += 4;
}
}*/
}
attachment.bones = bones;
attachment.vertices = weights;
}
Expand Down
8 changes: 4 additions & 4 deletions spinehaxe/TransformMode.hx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ package spinehaxe;
@:enum
abstract TransformMode(String) from String to String {
var normal = "normal";
var onlyTranslation = "onlytranslation";
var noRotationOrReflection = "norotationorreflection";
var noScale = "noscale";
var noScaleOrReflection = "noscaleorreflection";
var onlyTranslation = "onlyTranslation";
var noRotationOrReflection = "noRotationOrReflection";
var noScale = "noScale";
var noScaleOrReflection = "noScaleOrReflection";
}