mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
This is too untable.... Stress in example is crashed by this.
Revert "svg_loader: limiting the ploted area of svg to viewBox"
This reverts commit 2bb108b2f1
.
This commit is contained in:
parent
efd4741a78
commit
9f0fafa5df
1 changed files with 1 additions and 8 deletions
|
@ -363,14 +363,7 @@ unique_ptr<Scene> _sceneBuildHelper(const SvgNode* node, float vx, float vy, flo
|
||||||
scene->push(_sceneBuildHelper(*child, vx, vy, vw, vh));
|
scene->push(_sceneBuildHelper(*child, vx, vy, vw, vh));
|
||||||
} else {
|
} else {
|
||||||
auto shape = _shapeBuildHelper(*child, vx, vy, vw, vh);
|
auto shape = _shapeBuildHelper(*child, vx, vy, vw, vh);
|
||||||
// clipping the viewBox
|
if (shape) scene->push(move(shape));
|
||||||
if (shape) {
|
|
||||||
auto viewBoxClip = Shape::gen();
|
|
||||||
viewBoxClip->appendRect(vx, vy, vw, vh, 0, 0);
|
|
||||||
viewBoxClip->fill(0, 0, 0, 255);
|
|
||||||
shape->composite(move(viewBoxClip), tvg::CompositeMethod::ClipPath);
|
|
||||||
scene->push(move(shape));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Apply composite node
|
//Apply composite node
|
||||||
|
|
Loading…
Add table
Reference in a new issue