Ignore:
Timestamp:
07/13/20 13:51:43 (4 years ago)
Author:
Maciej Komosinski
Message:

More consistent usage of "shapetype" (vs. "shape")

File:
1 edited

Legend:

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

    r972 r999  
    5858void ModelObj::p_newfromstring(ExtValue *args, ExtValue *ret)
    5959{
    60         *ret = makeDynamicObject(new Model(Geno(args[0].getString()), Model::SHAPE_UNKNOWN));
     60        *ret = makeDynamicObject(new Model(Geno(args[0].getString()), Model::SHAPETYPE_UNKNOWN));
    6161}
    6262
     
    6565        Geno *g = GenoObj::fromObject(args[0].getObject());
    6666        if (g)
    67                 *ret = makeDynamicObject(new Model(*g, Model::SHAPE_UNKNOWN));
     67                *ret = makeDynamicObject(new Model(*g, Model::SHAPETYPE_UNKNOWN));
    6868        else
    6969                ret->setEmpty();
     
    7474        Model *m = NULL;
    7575        if (args[0].getType() == TString)
    76                 m = new Model(Geno(args[0].getString()), Model::SHAPE_UNKNOWN, false, true);
     76                m = new Model(Geno(args[0].getString()), Model::SHAPETYPE_UNKNOWN, false, true);
    7777        else
    7878        {
    7979                Geno *g = GenoObj::fromObject(args[0].getObject(), false);
    8080                if (g)
    81                         m = new Model(*g, Model::SHAPE_UNKNOWN, false, true);
     81                        m = new Model(*g, Model::SHAPETYPE_UNKNOWN, false, true);
    8282                else
    8383                        logPrintf("Model", "newWithCheckpoints", LOG_ERROR, "Geno or string expected, %s found", args[0].typeDescription().c_str());
     
    178178void ModelObj::get_solid_model(ExtValue *ret)
    179179{
    180         if (getShapeType() != Model::SHAPE_BALL_AND_STICK)
     180        if (getShapeType() != Model::SHAPETYPE_BALL_AND_STICK)
    181181                ret->setEmpty();
    182182        Model *m = new Model;
Note: See TracChangeset for help on using the changeset viewer.