QmlDesigner: Center on selection box when fit tool is used in 3D Edit

Instead of centering edit camera on selected object, center it on
the selection box, which includes child objects.

Change-Id: I7315a4bcfffc74e72a2b21d0a04fc99ee9f4f3c3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2019-11-22 16:53:36 +02:00
parent e0af519d1a
commit 6ee83b4c19
5 changed files with 31 additions and 8 deletions
@@ -32,6 +32,7 @@ Node {
property View3D view3D
property Node targetNode: null
property alias model: selectionBoxModel
SelectionBoxGeometry {
id: selectionBoxGeometry