Skip to content

Commit

Permalink
fix protobuf file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ianyourgod committed Jun 23, 2024
1 parent 70accbc commit 74380d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/project.protobuf.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,17 +285,17 @@ costume._readField = function (tag, obj, pbf) {
else if (tag === 3) obj.dataFormat = pbf.readString();
else if (tag === 4) obj.assetId = pbf.readString();
else if (tag === 5) obj.md5ext = pbf.readString();
else if (tag === 6) obj.rotationCenterX = pbf.readVarint(true);
else if (tag === 7) obj.rotationCenterY = pbf.readVarint(true);
else if (tag === 6) obj.rotationCenterX = pbf.readDouble();
else if (tag === 7) obj.rotationCenterY = pbf.readDouble();
};
costume.write = function (obj, pbf) {
if (obj.name) pbf.writeStringField(1, obj.name);
if (obj.bitmapResolution) pbf.writeVarintField(2, obj.bitmapResolution);
if (obj.dataFormat) pbf.writeStringField(3, obj.dataFormat);
if (obj.assetId) pbf.writeStringField(4, obj.assetId);
if (obj.md5ext) pbf.writeStringField(5, obj.md5ext);
if (obj.rotationCenterX) pbf.writeVarintField(6, obj.rotationCenterX);
if (obj.rotationCenterY) pbf.writeVarintField(7, obj.rotationCenterY);
if (obj.rotationCenterX) pbf.writeDoubleField(6, obj.rotationCenterX);
if (obj.rotationCenterY) pbf.writeDoubleField(7, obj.rotationCenterY);
};

// sound ========================================
Expand Down Expand Up @@ -485,4 +485,4 @@ Sprite._FieldEntry9.write = function (obj, pbf) {
};

// export project
module.exports = Project
module.exports = Project

0 comments on commit 74380d7

Please sign in to comment.