forked from qt-creator/qt-creator
QmlDesigner: Add bundle 3D node under root if there is no 3D scene
Fixes: QDS-12916 Change-Id: Iaa437c832afb8fb78b41a9d91d2bbc9e04d27702 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -187,6 +187,8 @@ void ContentLibraryView::connectImporter()
|
||||
} else if (isItemBundle(bundleId)) {
|
||||
if (!m_bundleItemTarget)
|
||||
m_bundleItemTarget = Utils3D::active3DSceneNode(this);
|
||||
if (!m_bundleItemTarget)
|
||||
m_bundleItemTarget = rootModelNode();
|
||||
|
||||
QTC_ASSERT(m_bundleItemTarget, return);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user