Skip to content

Commit 057c447

Browse files
committed
temporary deactivate auto-remove files from project data folder on object remove, needs a proper solution to auto clean unused files
1 parent 51fd9c3 commit 057c447

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/objects/scripting/BashScript.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void BashScript::drawObjectNodeConfig(){
265265
//--------------------------------------------------------------
266266
void BashScript::removeObjectContent(bool removeFileFromData){
267267
if(filepath != ofToDataPath("scripts/empty.sh",true) && removeFileFromData){
268-
removeFile(filepath);
268+
//removeFile(filepath);
269269
}
270270

271271
std::unique_lock<std::mutex> lck(mutex);

src/objects/scripting/LuaScript.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void LuaScript::removeObjectContent(bool removeFileFromData){
417417
///////////////////////////////////////////
418418

419419
if(removeFileFromData){
420-
removeFile(filepath);
420+
//removeFile(filepath);
421421
}
422422
}
423423

src/objects/scripting/PythonScript.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ void PythonScript::removeObjectContent(bool removeFileFromData){
279279
script = ofxPythonObject::_None();
280280

281281
if(removeFileFromData && filepath != ofToDataPath("scripts/empty.py",true)){
282-
removeFile(filepath);
282+
//removeFile(filepath);
283283
}
284284
}
285285

src/objects/scripting/ShaderObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ void ShaderObject::drawObjectNodeConfig(){
443443
void ShaderObject::removeObjectContent(bool removeFileFromData){
444444

445445
if(currentScriptFile.getAbsolutePath() != ofToDataPath("scripts/empty.frag",true) && currentScriptFile.exists() && removeFileFromData){
446-
removeFile(filepath);
446+
//removeFile(filepath);
447447
//ofLog(OF_LOG_NOTICE,"%s",lastVertexShaderPath.c_str());
448448
/*if(lastVertexShaderPath != ofToDataPath("scripts/empty.vert",true)){
449449
removeFile(lastVertexShaderPath);

0 commit comments

Comments
 (0)