summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGO63-samara <go1@list.ru>2021-04-25 22:52:08 +0400
committerGO63-samara <go1@list.ru>2021-04-25 22:52:08 +0400
commit0ddcf4eb94fa4ee530702bca2c54e390b3c6057d (patch)
tree4531bb2d4447a72d43df5d761371afcaa5024086
parent862dd8c03128935f1dcd52a4eda0b43999e2aa97 (diff)
Fixed operation of the [Toggle] and [Toggle while held] buttons
This fix eliminate incorrect rotation and movement of the Octopus when the view is turned off with the [Toggle] or [Toggle while held] buttons.
-rw-r--r--logic/pipeline.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp
index e6f82063..658c62bb 100644
--- a/logic/pipeline.cpp
+++ b/logic/pipeline.cpp
@@ -465,7 +465,8 @@ ok:
for (int i = 0; i < 6; i++)
value(i) = 0;
- value = apply_zero_pos(value);
+ if (hold_ordered) value = output_pose;
+ else value = apply_zero_pos(value);
ev.run_events(EV::ev_finished, value);
libs.pProtocol->pose(value, raw);