We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdc7eda commit d05e8e4Copy full SHA for d05e8e4
engine/controllers/models.cc
@@ -461,6 +461,9 @@ void Models::ImportModel(
461
model_config.files.push_back(modelPath);
462
auto size = std::filesystem::file_size(modelPath);
463
model_config.size = size;
464
+
465
+ // set this so that it doesn't nuke the original file on model deletion
466
+ model_entry.branch_name = "imported";
467
}
468
model_config.model = modelHandle;
469
model_config.name = modelName.empty() ? model_config.name : modelName;
0 commit comments