Skip to content

Commit 09c04b8

Browse files
committed
usability fixes
1 parent 8182af0 commit 09c04b8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/objects/graphics/ImageLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void ImageLoader::drawObjectNodeConfig(){
208208
//--------------------------------------------------------------
209209
void ImageLoader::removeObjectContent(bool removeFileFromData){
210210
if(removeFileFromData){
211-
removeFile(filepath);
211+
//removeFile(filepath);
212212
}
213213
}
214214

src/objects/scripting/LuaScript.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ void LuaScript::openScript(string scriptFile){
524524
tf.listDir(file.getEnclosingDirectory());
525525
for(int i = 0; i < (int)tf.size(); i++){
526526
ofDirectory ttf(tf.getPath(i));
527-
if(ttf.isDirectory()){
527+
if(ttf.isDirectory() && tf.getName(i) != "data"){
528528
filesystem::path tpa(this->patchFolderPath+tf.getName(i)+"/");
529529
ttf.copyTo(tpa,false,false);
530530
ttf.listDir();

src/objects/video/VideoPlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ void VideoPlayer::removeObjectContent(bool removeFileFromData){
431431
video->close();
432432
}
433433
if(removeFileFromData){
434-
removeFile(filepath);
434+
//removeFile(filepath);
435435
}
436436
}
437437

0 commit comments

Comments
 (0)