Changeset 821 for cpp/frams/genetics/fH
- Timestamp:
- 10/10/18 01:13:05 (6 years ago)
- Location:
- cpp/frams/genetics/fH
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fH/fH_general.cpp
r803 r821 344 344 // Creature build functions 345 345 346 Part * fH_StickHandle::createPart(ParamEntry *tab, std::vector<fH_StickHandle *> children, Model *model, bool createmapping)346 Part * fH_StickHandle::createPart(ParamEntry *tab, std::vector<fH_StickHandle *> *children, Model *model, bool createmapping) 347 347 { 348 348 Param par(tab, obj); … … 353 353 } 354 354 355 unsigned int stickscount = children .size() + 1;355 unsigned int stickscount = children->size() + 1; 356 356 357 357 MultiRange ranges; 358 358 ranges.add(begin, end); 359 359 360 for (fH_StickHandle *child : children)360 for (fH_StickHandle *child : (*children)) 361 361 { 362 362 par.select(child->obj); … … 753 753 { 754 754 vector<fH_StickHandle *> emptylist; 755 Part *firstpart = currstick->createPart(stickparamtab, emptylist, model, createmapping);755 Part *firstpart = currstick->createPart(stickparamtab, &emptylist, model, createmapping); 756 756 firstpart->p = Pt3D(0); 757 757 currstick->firstpart = firstpart; … … 847 847 } 848 848 // create part from current stick and other sticks connected to this part 849 Part *secondpart = currstick->createPart(stickparamtab, children, model, createmapping);849 Part *secondpart = currstick->createPart(stickparamtab, &children, model, createmapping); 850 850 secondpart->p = secondposition; 851 851 currstick->secondpart = secondpart; -
cpp/frams/genetics/fH/fH_general.h
r803 r821 173 173 * @return created part 174 174 */ 175 Part *createPart(ParamEntry *tab, std::vector<fH_StickHandle *> children, Model *model, bool createmapping);175 Part *createPart(ParamEntry *tab, std::vector<fH_StickHandle *> *children, Model *model, bool createmapping); 176 176 177 177 /**
Note: See TracChangeset
for help on using the changeset viewer.