summaryrefslogtreecommitdiffstats
path: root/editorlib/src/editorutils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change editor save format from QML to JSON + QGLTF when supportedMiikka Heikkinen2016-12-161-0/+16
| | | | | Change-Id: If2bf099b5e77b3350ee5670e968cfa9a96d563b2 Reviewed-by: Antti Määttä <antti.maatta@qt.io>
* Hide the original entity loaded by scene loaderMiikka Heikkinen2016-09-191-0/+10
| | | | | | | | This is only necessary, because deleting scene loader entity crashes and Qt3D doesn't propagate disabled status to child entities anymore. Change-Id: Icc630d9f65fb94b5fa5b2ebc7e58043d2b574303 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Enable dragging via helper arrowsMiikka Heikkinen2016-09-151-3/+7
| | | | | | | Also added local/global helper arrow toggle. Change-Id: I48552e06388ccc14a530acb8f719efa5c4fbfa0b Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Add local axes visualization for currently selected objectMiikka Heikkinen2016-09-071-0/+29
| | | | | Change-Id: Ib6e66c94630e662e5e2affedd17fc929643b72b9 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Use new StateMask enum locationJanne Koskinen2016-08-011-19/+19
| | | | | | | StateMask was moved away from QRenderStatePrivate. Change-Id: Id565028fec879f4c047f802d1867f6387201d59f Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Changed camera model to a custom mesh and enabled triangle pickingMiikka Heikkinen2016-06-161-50/+3
| | | | | | Change-Id: Ic12506a8ca2419a521dd2e88ce47d9db78c9cf2a Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* Change group box to always tightly contain group contentsMiikka Heikkinen2016-06-101-0/+37
| | | | | | | | | | Added drag handle for actual group/mesh translation point for groups/meshes that are not centered around their translation point. For additional clarity, added a line between the selection box translation handle and group/mesh translation point handle. Change-Id: I25146a68472f3f1b3703cbbcc1a60464d4c87260 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Optimize isDescendant functionMiikka Heikkinen2016-06-091-9/+7
| | | | | Change-Id: I6f07088c54420b06d7aa5bfa0bd43d62bf84da2e Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix various drag handle visibility issuesMiikka Heikkinen2016-06-031-6/+6
| | | | | | | | | | | | - Entity insert drag entity no longer remains visible if drag is canceled by alt-tabbing out of the editor while cursor is over the 3D viewport - Selection box drag handles no longer show through entity library - Selection box drag handles no longer show up if the box is behind the camera Change-Id: I3f4e7f4953e1526622579f743abae2336d317337 Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
* Changes to drag handle functionalityMiikka Heikkinen2016-06-021-5/+6
| | | | | | | | | | | - Added scale handle to every corner - Added proper icon for rotate handle - Rotate handle doesn't change corners while drag-rotating - Rotate handle is always positioned to upper right corner of the selection box as seen on screen. Change-Id: Iddb3684b4824a95613e9e91eeb522d9647d2282a Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Refactor editor to support launching it from creator pluginMiikka Heikkinen2016-05-301-0/+1513
Editor functionality is moved into a library, which is used from both a new standalone application and a creator plugin. Currently creator plugin just launches the editor in a separate window. Change-Id: Ia549d43e8b3d282ea5f96ad0cf661cf3b53aadfc Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>