Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tweak Mode does not always work in version 3.0b5 #3742
Using "tweak mode" (Sketch > Tweak) does not always work. The presence of some comments before the variable(s) to be tweaked seems to make a difference.
For example, this sketch works:
But this sketch does not (the sketch runs, but the
The only different is the comment.
float diam = 100 // tweak
In this case tweak mode will ignore all other numbers in the sketch.
Thanks for reporting this @PhilipSharman
Huh... wasn't aware of that. I think I'd lean toward using something slightly less generic, i.e.:
The case in this report seems way too likely to happen on accident (with confusing results—I figured this was just a bug too).
Does it still work if there are multiple variables on the same line?
// all ellipse(100, 100, 300, 500); ///tweak // one ellipse(100, 100, 300, ///tweak 500);
Actually, what started as a way to "toggle" tweak-mode, became later on, on this branch a feature to setup a limit to the range. I needed it for a project where I created random sketch versions.
ellipse(x, y, 100, 100) // tweak[0-200]
I can bring it to life if theres interest.