[cpp] Add accessors for MeshAttachment::_regionDegrees. Fixes #1480.

This commit is contained in:
badlogic 2019-09-12 15:59:16 +02:00
parent e52d8acc84
commit e583531ae0
2 changed files with 11 additions and 0 deletions

View File

@ -81,6 +81,9 @@ namespace spine {
bool getRegionRotate();
void setRegionRotate(bool inValue);
int getRegionDegrees();
void setRegionDegrees(int inValue);
float getRegionOffsetX();
void setRegionOffsetX(float inValue);

View File

@ -193,6 +193,14 @@ void MeshAttachment::setRegionRotate(bool inValue) {
_regionRotate = inValue;
}
int MeshAttachment::getRegionDegrees() {
return _regionDegrees;
}
void MeshAttachment::setRegionDegrees(int inValue) {
_regionDegrees = inValue;
}
float MeshAttachment::getRegionOffsetX() {
return _regionOffsetX;
}