From f4599764fea1430ee9e3b7435ca47fddf63db7f1 Mon Sep 17 00:00:00 2001 From: SmallMain Date: Mon, 27 Jun 2022 18:01:47 +0800 Subject: [PATCH] =?UTF-8?q?revert=20=E8=A1=A5=E5=85=85=E6=9F=90=E4=BA=9B?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E7=9A=84=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E6=9F=90=E4=BA=9B=E4=B8=8D=E8=AF=A5=E5=87=BA=E7=8E=B0=E7=9A=84?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cocos2d-x/cocos/editor-support/spine/MeshAttachment.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos2d-x/cocos/editor-support/spine/MeshAttachment.cpp b/cocos2d-x/cocos/editor-support/spine/MeshAttachment.cpp index fae5bad8..bc2afc75 100644 --- a/cocos2d-x/cocos/editor-support/spine/MeshAttachment.cpp +++ b/cocos2d-x/cocos/editor-support/spine/MeshAttachment.cpp @@ -98,8 +98,8 @@ void MeshAttachment::updateUVs() { return; } case 270: { - float textureWidth = _regionHeight / (_regionV2 - _regionV); - float textureHeight = _regionWidth / (_regionU2 - _regionU); + float textureWidth = _regionWidth / (_regionU2 - _regionU); + float textureHeight = _regionHeight / (_regionV2 - _regionV); u -= _regionOffsetY / textureWidth; v -= _regionOffsetX / textureHeight; width = _regionOriginalHeight / textureWidth;