Initial scene to svg conversion.
This commit is contained in:
parent
65ac927929
commit
1fc730d413
15 changed files with 164 additions and 28 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue