Changeset 393 for cpp/frams/model
- Timestamp:
- 06/03/15 17:57:46 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/model.cpp
r391 r393 570 570 partparam.select(p); 571 571 pos+=2; 572 partparam.load2(line,pos);572 if (partparam.load2(line,pos) & ParamInterface::LOAD2_PARSE_FAILED) return -1; 573 573 p->o.rotate(p->rot); 574 574 parts+=p; … … 582 582 modelparam.select(this); 583 583 pos+=2; 584 modelparam.load2(line,pos);584 if (modelparam.load2(line,pos) & ParamInterface::LOAD2_PARSE_FAILED) return -1; 585 585 return 0; 586 586 } … … 592 592 pos+=2; 593 593 j->owner=this; 594 jointparam.load2(line,pos);594 if (jointparam.load2(line,pos) & ParamInterface::LOAD2_PARSE_FAILED) return -1; 595 595 if ((j->p1_refno>=0)&&(j->p1_refno<getPartCount())&& 596 596 (j->p2_refno>=0)&&(j->p2_refno<getPartCount())) … … 620 620 neuroparam.select(nu); 621 621 pos+=2; 622 neuroparam.load2(line,pos);622 if (neuroparam.load2(line,pos) & ParamInterface::LOAD2_PARSE_FAILED) return -1; 623 623 #ifdef MODEL_V1_COMPATIBLE 624 624 if (nu->neuro_refno>=0) // parent specified... … … 684 684 ncparam.select(&c); 685 685 pos+=2; 686 ncparam.load2(line,pos);686 if (ncparam.load2(line,pos) & ParamInterface::LOAD2_PARSE_FAILED) return -1; 687 687 if ((c.n1_refno>=0)&&(c.n1_refno<getNeuroCount())&&(c.n2_refno>=0)&&(c.n2_refno<getNeuroCount())) 688 688 { … … 706 706 neuroitemparam.select(nu); 707 707 pos+=3; 708 neuroitemparam.load2(line,pos);708 if (neuroitemparam.load2(line,pos) & ParamInterface::LOAD2_PARSE_FAILED) return -1; 709 709 // illegal parent? 710 710 if ((nu->neuro_refno<0)||(nu->neuro_refno>=old_getNeuroCount()))
Note: See TracChangeset
for help on using the changeset viewer.