@@ -196,7 +196,7 @@ void ofxVisualProgramming::update(){
196196 // remove scripts objects filepath reference from scripts objects files map
197197 ofFile tempsofp (patchObjects.at (eraseIndexes.at (x))->getFilepath ());
198198 string fileExt = ofToUpper (tempsofp.getExtension ());
199- if (fileExt == " LUA" || fileExt == " PY" || fileExt == " SH" || fileExt == " JAVA " || fileExt == " FRAG" ){
199+ if (fileExt == " LUA" || fileExt == " PY" || fileExt == " SH" || fileExt == " FRAG" ){
200200 map<string,string>::iterator sofpIT = scriptsObjectsFilesPaths.find (tempsofp.getFileName ());
201201 if (sofpIT != scriptsObjectsFilesPaths.end ()){
202202 // found it, remove it
@@ -231,7 +231,7 @@ void ofxVisualProgramming::update(){
231231 // update scripts objects files map
232232 ofFile tempsofp (patchObjects[leftToRightIndexOrder[i].second ]->getFilepath ());
233233 string fileExt = ofToUpper (tempsofp.getExtension ());
234- if (fileExt == " LUA" || fileExt == " PY" || fileExt == " SH" || fileExt == " JAVA " || fileExt == " FRAG" ){
234+ if (fileExt == " LUA" || fileExt == " PY" || fileExt == " SH" || fileExt == " FRAG" ){
235235 map<string,string>::iterator sofpIT = scriptsObjectsFilesPaths.find (tempsofp.getFileName ());
236236 if (sofpIT == scriptsObjectsFilesPaths.end ()){
237237 // not found, insert it
@@ -438,7 +438,7 @@ void ofxVisualProgramming::cleanPatchDataFolder(){
438438 // not found in patch scripts map, remove it from patch data folder
439439 // ofLog(OF_LOG_NOTICE,"%s",dir.getFile(i).getAbsolutePath().c_str());
440440 string fileExt = ofToUpper (dir.getFile (i).getExtension ());
441- if (fileExt == " PY" || fileExt == " SH" || fileExt == " JAVA " || fileExt == " FRAG" ){
441+ if (fileExt == " PY" || fileExt == " SH" || fileExt == " FRAG" ){
442442 dir.getFile (i).remove ();
443443 }
444444 // remove if filename is empty
0 commit comments