Modify Simulate::InjectNoise to set target of exponential decay to value from key_ctrl if a valid key is provided as input.
PiperOrigin-RevId: 813819040 Change-Id: I79508039b17fb3484b71ae0d19614c32adacfa10
This commit is contained in:
committed by
Copybara-Service
parent
edbdb5195c
commit
401bf431b8
+2
-2
@@ -89,7 +89,7 @@ class Simulate {
|
||||
void AddToHistory();
|
||||
|
||||
// inject control noise
|
||||
void InjectNoise();
|
||||
void InjectNoise(int key);
|
||||
|
||||
// constants
|
||||
static constexpr int kMaxFilenameLength = 1000;
|
||||
@@ -199,7 +199,7 @@ class Simulate {
|
||||
int busywait = 0;
|
||||
|
||||
// keyframe index
|
||||
int key = 0;
|
||||
int key = -1;
|
||||
|
||||
// index of history-scrubber slider
|
||||
int scrub_index = 0;
|
||||
|
||||
Reference in New Issue
Block a user