Commit 12adabc8 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.nodeInstances: fixes painting code

Do not paint children that have an instance of
their own.
parent 71dde2cb
......@@ -172,6 +172,12 @@ void initOption(QGraphicsItem *item, QStyleOptionGraphicsItem *option, const QTr
void GraphicsObjectNodeInstance::paintRecursively(QGraphicsItem *graphicsItem, QPainter *painter) const
QGraphicsObject *graphicsObject = graphicsItem->toGraphicsObject();
if (graphicsObject) {
if (nodeInstanceView()->hasInstanceForObject(graphicsObject))
return; //we already keep track of this object elsewhere
if (graphicsItem->isVisible()) {
painter->setTransform(graphicsItem->itemTransform(graphicsItem->parentItem()), true);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment