Skip to content

Commit 6103d6a

Browse files
committed
Merge pull request #2855 from galsasson/master
TweakMode: fix oscp5 dependency check
2 parents 836b52b + 8fd6b11 commit 6103d6a

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

pdex/src/processing/mode/experimental/ExperimentalMode.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,6 @@ public Runner handleTweakPresentOrRun(Sketch sketch, RunnerListener listener, bo
387387
final DebugEditor editor = (DebugEditor)listener;
388388
final boolean toPresent = present;
389389

390-
if (!verifyOscP5()) {
391-
editor.deactivateRun();
392-
return null;
393-
}
394-
395390
boolean launchInteractive = false;
396391

397392
if (isSketchModified(sketch)) {
@@ -449,21 +444,6 @@ public void run() {
449444
return null;
450445
}
451446

452-
private boolean verifyOscP5()
453-
{
454-
for (Library l : contribLibraries) {
455-
if (l.getName().equals("oscP5")) {
456-
return true;
457-
}
458-
}
459-
460-
// could not find oscP5 library
461-
Base.showWarning("Tweak Mode", "Tweak Mode needs the 'oscP5' library.\n"
462-
+ "Please install this library by clicking \"Sketch --> Import Library --> Add Library ...\" and choose 'ocsP5'", null);
463-
464-
return false;
465-
}
466-
467447
private boolean isSketchModified(Sketch sketch)
468448
{
469449
for (SketchCode sc : sketch.getCode()) {

0 commit comments

Comments
 (0)