Skip to content
Snippets Groups Projects
Commit a3730945 authored by Cristian Galperti's avatar Cristian Galperti
Browse files

default value of tp structures always rewritten

parent bd0db675
No related branches found
No related tags found
No related merge requests found
......@@ -445,14 +445,17 @@ classdef SCDclass_algo
tmplname = sprintf('%s_tmpl',obj.exportedtps{ii});
if designDataobj.exist(tmplname)
oldEntry = designDataobj.getEntry(tmplname);
if isequal(oldEntry.getValue.Value,P.Value)
fprintf('%s: keep old template %s since not changed\n',obj.getname,tmplname);
continue;
else
% replace
oldEntry.setValue(P);
fprintf('%s: replaced value of template %s since it changed\n',obj.getname,tmplname)
end
% isequal does not detect type changes
%if isequal(oldEntry.getValue.Value,P.Value)
% fprintf('%s: keep old template %s since not changed\n',obj.getname,tmplname);
% continue;
%else
% % replace
% oldEntry.setValue(P);
% fprintf('%s: replaced value of template %s since it changed\n',obj.getname,tmplname)
%end
oldEntry.setValue(P);
fprintf('%s: replaced value of template %s\n',obj.getname,tmplname)
else
fprintf(' %s: added new %s\n',obj.getname, tmplname);
designDataobj.addEntry(tmplname,P);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment