Changeset 821 for cpp/frams/genetics/fH


Ignore:
Timestamp:
10/10/18 01:13:05 (6 years ago)
Author:
Maciej Komosinski
Message:

Performance and stability improvements in fB, fH, and fL; improved parsing and math evaluations in fL

Location:
cpp/frams/genetics/fH
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fH/fH_general.cpp

    r803 r821  
    344344// Creature build functions
    345345
    346 Part * fH_StickHandle::createPart(ParamEntry *tab, std::vector<fH_StickHandle *> children, Model *model, bool createmapping)
     346Part * fH_StickHandle::createPart(ParamEntry *tab, std::vector<fH_StickHandle *> *children, Model *model, bool createmapping)
    347347{
    348348        Param par(tab, obj);
     
    353353        }
    354354
    355         unsigned int stickscount = children.size() + 1;
     355        unsigned int stickscount = children->size() + 1;
    356356
    357357        MultiRange ranges;
    358358        ranges.add(begin, end);
    359359
    360         for (fH_StickHandle *child : children)
     360        for (fH_StickHandle *child : (*children))
    361361        {
    362362                par.select(child->obj);
     
    753753                {
    754754                        vector<fH_StickHandle *> emptylist;
    755                         Part *firstpart = currstick->createPart(stickparamtab, emptylist, model, createmapping);
     755                        Part *firstpart = currstick->createPart(stickparamtab, &emptylist, model, createmapping);
    756756                        firstpart->p = Pt3D(0);
    757757                        currstick->firstpart = firstpart;
     
    847847                }
    848848                // 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);
    850850                secondpart->p = secondposition;
    851851                currstick->secondpart = secondpart;
  • cpp/frams/genetics/fH/fH_general.h

    r803 r821  
    173173         * @return created part
    174174         */
    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);
    176176
    177177        /**
Note: See TracChangeset for help on using the changeset viewer.