|
|
@@ -775,10 +775,7 @@ void ModuleWidget::cloneAction() { |
|
|
|
|
|
|
|
// JSON serialization is the obvious way to do this |
|
|
|
json_t* moduleJ = toJson(); |
|
|
|
// Don't use IDs from JSON |
|
|
|
json_object_del(moduleJ, "id"); |
|
|
|
json_object_del(moduleJ, "leftModuleId"); |
|
|
|
json_object_del(moduleJ, "rightModuleId"); |
|
|
|
cleanupModuleJson(moduleJ); |
|
|
|
|
|
|
|
// Clone Module |
|
|
|
engine::Module* clonedModule = model->createModule(); |
|
|
|