[ts] Fix PathAttachment missing this and SkeletonData default fps.

This commit is contained in:
Davide Tantillo 2025-10-30 09:49:05 +01:00
parent 1a9ea6edd0
commit a76e90fdf3
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ export class SkeletonData {
// Nonessential
/** The dopesheet FPS in Spine. Available only when nonessential data was exported. */
fps = 0;
fps = 30;
/** The path to the images directory as defined in Spine. Available only when nonessential data was exported. May be null. */
imagesPath: string | null = null;

View File

@ -58,7 +58,7 @@ export class PathAttachment extends VertexAttachment {
this.copyTo(copy);
copy.lengths = [];
Utils.arrayCopy(this.lengths, 0, copy.lengths, 0, this.lengths.length);
copy.closed = closed;
copy.closed = this.closed;
copy.constantSpeed = this.constantSpeed;
copy.color.setFromColor(this.color);
return copy;