Gui: Fix rotation center indicator for Gesture styles

This commit is contained in:
Rexbas
2023-10-07 14:32:02 +02:00
committed by wwmayer
parent b86d8852e5
commit 908f6c9f78
2 changed files with 5 additions and 0 deletions

View File

@@ -489,6 +489,7 @@ public:
explicit RotateState(my_context ctx):my_base(ctx)
{
auto &ns = this->outermost_context().ns;
ns.setRotationCenter(ns.getFocalPoint());
ns.setViewingMode(NavigationStyle::DRAGGING);
this->base_pos = static_cast<const NS::Event*>(this->triggering_event())->inventor_event->getPosition();
if (ns.logging)
@@ -625,6 +626,7 @@ public:
explicit TiltState(my_context ctx):my_base(ctx)
{
auto &ns = this->outermost_context().ns;
ns.setRotationCenter(ns.getFocalPoint());
ns.setViewingMode(NavigationStyle::DRAGGING);
this->base_pos = static_cast<const NS::Event*>(this->triggering_event())->inventor_event->getPosition();
if (ns.logging)