Changeset 183 for cpp/frams/model


Ignore:
Timestamp:
03/18/14 09:15:31 (6 years ago)
Author:
Maciej Komosinski
Message:

Improved handling of model properties

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/model.cpp

    r165 r183  
    403403//NeuroItem *ni;
    404404
    405 if (startenergy!=defaultmodel.startenergy)
    406         {
    407         modelparam.select(this);
     405SString mod_props;
     406modelparam.select(this);
     407modelparam.save2(mod_props,handle_defaults ? &defaultmodel : NULL,true,!handle_defaults);
     408if (mod_props.len()>0) //are there any non-default values?
     409        {
    408410        gen+="m:";
    409         modelparam.save2(gen,handle_defaults ? &defaultmodel : NULL,true,!handle_defaults);
     411        gen+=mod_props;
    410412        }
    411413
Note: See TracChangeset for help on using the changeset viewer.