Changeset 82 for cpp/gdk/model.cpp
- Timestamp:
- 02/08/13 03:44:31 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/gdk/model.cpp
r66 r82 3 3 // Refer to http://www.framsticks.com/ for further information. 4 4 5 #include "nonstd .h"5 #include "nonstd_math.h" 6 6 #include "model.h" 7 7 #include "framsg.h" 8 8 #include "multimap.h" 9 9 #include "errmanager.h" 10 11 #include <math.h>12 10 13 11 #define FIELDSTRUCT Model … … 384 382 } 385 383 386 void Model::makeGeno(Geno &g,MultiMap *map )384 void Model::makeGeno(Geno &g,MultiMap *map,bool handle_defaults) 387 385 { 388 386 if ((buildstatus!=valid)&&(buildstatus!=building)) … … 419 417 modelparam.select(this); 420 418 gen+="m:"; 421 modelparam.save2(gen, &defaultmodel);419 modelparam.save2(gen,handle_defaults ? &defaultmodel : NULL,true,!handle_defaults); 422 420 } 423 421 … … 427 425 len=gen.len(); 428 426 gen+="p:"; 429 partparam.save2(gen, &defaultpart);427 partparam.save2(gen,handle_defaults ? &defaultpart : NULL,true,!handle_defaults); 430 428 if (map) 431 429 map->add(len,gen.len()-1,partToMap(i)); … … 437 435 jointparam.setParamTab(j->usedelta?f0_joint_paramtab:f0_nodeltajoint_paramtab); 438 436 gen+="j:"; 439 jointparam.save2(gen, &defaultjoint);437 jointparam.save2(gen,handle_defaults ? &defaultjoint : NULL,true,!handle_defaults); 440 438 if (map) 441 439 map->add(len,gen.len()-1,jointToMap(i)); … … 446 444 len=gen.len(); 447 445 gen+="n:"; 448 neuroparam.save2(gen, &defaultneuro);446 neuroparam.save2(gen,handle_defaults ? &defaultneuro : NULL,true,!handle_defaults); 449 447 if (map) 450 448 map->add(len,gen.len()-1,neuroToMap(i)); … … 477 475 len=gen.len(); 478 476 gen+="c:"; 479 connparam.save2(gen, &defaultconn);477 connparam.save2(gen,handle_defaults ? &defaultconn : NULL,true,!handle_defaults); 480 478 if (map) 481 479 map->add(len,gen.len()-1,neuroToMap(n->refno));
Note: See TracChangeset
for help on using the changeset viewer.