mirror of https://github.com/axmolengine/axmol.git
closed #5118, fix CCSGUIReader setAnchorPoint
This commit is contained in:
parent
a0a4df5ac5
commit
ebffc66a83
|
@ -1265,7 +1265,10 @@ void WidgetPropertiesReader0300::setColorPropsForWidgetFromJsonDictionary(Widget
|
||||||
apyf = widget->getAnchorPoint().y;
|
apyf = widget->getAnchorPoint().y;
|
||||||
}
|
}
|
||||||
|
|
||||||
widget->setAnchorPoint(Vector2(apxf, apyf));
|
if (apx || apy) {
|
||||||
|
widget->setAnchorPoint(Vector2(apxf, apyf));
|
||||||
|
}
|
||||||
|
|
||||||
bool flipX = DICTOOL->getBooleanValue_json(options, "flipX");
|
bool flipX = DICTOOL->getBooleanValue_json(options, "flipX");
|
||||||
bool flipY = DICTOOL->getBooleanValue_json(options, "flipY");
|
bool flipY = DICTOOL->getBooleanValue_json(options, "flipY");
|
||||||
widget->setFlippedX(flipX);
|
widget->setFlippedX(flipX);
|
||||||
|
|
Loading…
Reference in New Issue