Initial scene to svg conversion.

This commit is contained in:
James Grogan 2022-12-08 08:48:18 +00:00
parent 65ac927929
commit 1fc730d413
15 changed files with 164 additions and 28 deletions

View file

@ -122,10 +122,9 @@ void Window::doPaint(mt::Screen* screen)
{
mPlatformWindow->beforePaint(screen);
auto scene = getScene();
if (scene->getRootNode()->getNumChildren() == 0)
if (auto scene = getScene(); scene->isEmpty())
{
scene->getRootNode()->addChild(mWidget->getRootNode());
scene->addNode(mWidget->getRootNode());
}
mDrawingContext->paint();