@@ -285,17 +285,17 @@ costume._readField = function (tag, obj, pbf) {
285
285
else if ( tag === 3 ) obj . dataFormat = pbf . readString ( ) ;
286
286
else if ( tag === 4 ) obj . assetId = pbf . readString ( ) ;
287
287
else if ( tag === 5 ) obj . md5ext = pbf . readString ( ) ;
288
- else if ( tag === 6 ) obj . rotationCenterX = pbf . readVarint ( true ) ;
289
- else if ( tag === 7 ) obj . rotationCenterY = pbf . readVarint ( true ) ;
288
+ else if ( tag === 6 ) obj . rotationCenterX = pbf . readDouble ( ) ;
289
+ else if ( tag === 7 ) obj . rotationCenterY = pbf . readDouble ( ) ;
290
290
} ;
291
291
costume . write = function ( obj , pbf ) {
292
292
if ( obj . name ) pbf . writeStringField ( 1 , obj . name ) ;
293
293
if ( obj . bitmapResolution ) pbf . writeVarintField ( 2 , obj . bitmapResolution ) ;
294
294
if ( obj . dataFormat ) pbf . writeStringField ( 3 , obj . dataFormat ) ;
295
295
if ( obj . assetId ) pbf . writeStringField ( 4 , obj . assetId ) ;
296
296
if ( obj . md5ext ) pbf . writeStringField ( 5 , obj . md5ext ) ;
297
- if ( obj . rotationCenterX ) pbf . writeVarintField ( 6 , obj . rotationCenterX ) ;
298
- if ( obj . rotationCenterY ) pbf . writeVarintField ( 7 , obj . rotationCenterY ) ;
297
+ if ( obj . rotationCenterX ) pbf . writeDoubleField ( 6 , obj . rotationCenterX ) ;
298
+ if ( obj . rotationCenterY ) pbf . writeDoubleField ( 7 , obj . rotationCenterY ) ;
299
299
} ;
300
300
301
301
// sound ========================================
@@ -485,4 +485,4 @@ Sprite._FieldEntry9.write = function (obj, pbf) {
485
485
} ;
486
486
487
487
// export project
488
- module . exports = Project
488
+ module . exports = Project
0 commit comments