@@ -233,7 +233,11 @@ proto._uploadRegionAttachmentData = function(attachment, slot, premultipliedAlph
233233 nodeG = nodeColor . g ,
234234 nodeB = nodeColor . b ,
235235 nodeA = this . _displayedOpacity ;
236- var vertices = attachment . updateWorldVertices ( slot , premultipliedAlpha ) ;
236+ // 3.5 var vertices = attachment.updateWorldVertices(slot, premultipliedAlpha);
237+ // FIXME: lose premultipliedAlpha?
238+ var vertices = spine . Utils . setArraySize ( new Array ( ) , 8 , 0 ) ;
239+ attachment . computeWorldVertices ( slot . bone , vertices , 0 , 8 ) ;
240+
237241 var wt = this . _worldTransform ,
238242 wa = wt . a , wb = wt . b , wc = wt . c , wd = wt . d ,
239243 wx = wt . tx , wy = wt . ty ,
@@ -280,14 +284,17 @@ proto._uploadMeshAttachmentData = function(attachment, slot, premultipliedAlpha,
280284 wx = wt . tx , wy = wt . ty ,
281285 z = this . _node . vertexZ ;
282286 // get the vertex data
283- var vertices = attachment . updateWorldVertices ( slot , premultipliedAlpha ) ;
287+ // 3.5 var vertices = attachment.updateWorldVertices(slot, premultipliedAlpha);
288+ var verticesLength = attachment . worldVerticesLength ;
289+ var vertices = spine . Utils . setArraySize ( new Array ( ) , verticesLength , 0 ) ;
290+ attachment . computeWorldVertices ( slot , 0 , verticesLength , vertices , 0 , 2 ) ;
284291 var offset = vertexDataOffset ;
285292 var nodeColor = this . _displayedColor ;
286293 var nodeR = nodeColor . r ,
287294 nodeG = nodeColor . g ,
288295 nodeB = nodeColor . b ,
289296 nodeA = this . _displayedOpacity ;
290- for ( var i = 0 , n = vertices . length ; i < n ; i += 8 ) {
297+ for ( var i = 0 , n = vertices . length ; i < n ; i += 2 ) {
291298 var vx = vertices [ i ] ,
292299 vy = vertices [ i + 1 ] ;
293300 var x = vx * wa + vy * wb + wx ,
0 commit comments