Qt Design Studio fixes
This patch adds a different code path for when the simulation is running
inside of a qml puppet, determined by the QML_PUPPET_MODE environment
variable. In this code path we just render the debug models of the
physics bodies on every frame but do not run any physical simulation so
all objects are shown in their starting position. This means that
changing the 'running' property of PhysicsWorld is ignored. Note that
only physics objects that are part of a PhysicsWorld will be rendered
and they will be rendered inside the scene or viewport this PhysicsWorld
is referencing. If running outside of a puppet the code path is the same
as before.
Task-number: QDS-9413
Pick-to: 6.5 6.6
Change-Id: Ifeb002a6d009981c92c00348271b10545dc4a885
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>