Remove bogus assert.
authorGunnar Sletta <gunnar@sletta.org>
Mon, 5 Jan 2015 12:21:45 +0000 (13:21 +0100)
committerGunnar Sletta <gunnar@sletta.org>
Mon, 5 Jan 2015 14:26:39 +0000 (15:26 +0100)
It is perfectly valid to reparent nodes to a parent
that is part of an existing hierarchy.

Change-Id: Icf2dbe6030d399047e7ebe735e3096d1a8cd8c0e
Task-number: QTBUG-43278
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
src/quick/scenegraph/coreapi/qsgnode.cpp

index bb22eee..7f78318 100644 (file)
@@ -582,8 +582,6 @@ void QSGNode::removeAllChildNodes()
  */
 void QSGNode::reparentChildNodesTo(QSGNode *newParent)
 {
-    Q_ASSERT_X(!newParent->parent(), "QSGNode::reparentChildNodesTo", "newParent is already part of a hierarchy");
-
     for (QSGNode *c = firstChild(); c; c = firstChild()) {
         removeChildNode(c);
         newParent->appendChildNode(c);