svg_loader: use node fixed

By mistake the use node was improperly transformed and/or displayed
for a reference node other than a symbol node.
This commit is contained in:
mgrudzinska 2022-02-23 22:53:41 +01:00 committed by JunsuChoi
parent b16d60d509
commit ed3608b39b

View file

@ -626,8 +626,8 @@ static unique_ptr<Scene> _useBuildHelper(const SvgNode* node, const Box& vBox, c
finalScene = move(root);
}
} else if (node->node.use.x != 0.0f || node->node.use.y != 0.0f) {
scene->transform(mUseTransform);
} else {
if (!mathIdentity((const Matrix*)(&mUseTransform))) scene->transform(mUseTransform);
finalScene = move(scene);
}