This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Rack
mirror of
https://github.com/VCVRack/Rack.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
38
Wiki
Activity
Browse Source
Hide CPU meter when module is disabled.
tags/v1.1.2
Andrew Belt
5 years ago
parent
bd6feee454
commit
33d75cc035
2 changed files
with
1 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/app/ModuleWidget.cpp
+0
-1
src/engine/Engine.cpp
+ 1
- 1
src/app/ModuleWidget.cpp
View File
@@ -259,7 +259,7 @@ void ModuleWidget::draw(const DrawArgs &args) {
Widget::draw(args);
// Power meter
if (module && settings::cpuMeter) {
if (module && settings::cpuMeter
&& !module->bypass
) {
nvgBeginPath(args.vg);
nvgRect(args.vg,
0, box.size.y - 35,
+ 0
- 1
src/engine/Engine.cpp
View File
@@ -603,7 +603,6 @@ void Engine::bypassModule(Module *module, bool bypass) {
// This zeros all voltages, but the channel is set to 1 if connected
output.setChannels(0);
}
module->cpuTime = 0.f;
module->bypass = bypass;
}
Write
Preview
Loading…
Cancel
Save