Changeset 999 for cpp/frams/model/modelobj.cpp
- Timestamp:
- 07/13/20 13:51:43 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/modelobj.cpp
r972 r999 58 58 void ModelObj::p_newfromstring(ExtValue *args, ExtValue *ret) 59 59 { 60 *ret = makeDynamicObject(new Model(Geno(args[0].getString()), Model::SHAPE _UNKNOWN));60 *ret = makeDynamicObject(new Model(Geno(args[0].getString()), Model::SHAPETYPE_UNKNOWN)); 61 61 } 62 62 … … 65 65 Geno *g = GenoObj::fromObject(args[0].getObject()); 66 66 if (g) 67 *ret = makeDynamicObject(new Model(*g, Model::SHAPE _UNKNOWN));67 *ret = makeDynamicObject(new Model(*g, Model::SHAPETYPE_UNKNOWN)); 68 68 else 69 69 ret->setEmpty(); … … 74 74 Model *m = NULL; 75 75 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); 77 77 else 78 78 { 79 79 Geno *g = GenoObj::fromObject(args[0].getObject(), false); 80 80 if (g) 81 m = new Model(*g, Model::SHAPE _UNKNOWN, false, true);81 m = new Model(*g, Model::SHAPETYPE_UNKNOWN, false, true); 82 82 else 83 83 logPrintf("Model", "newWithCheckpoints", LOG_ERROR, "Geno or string expected, %s found", args[0].typeDescription().c_str()); … … 178 178 void ModelObj::get_solid_model(ExtValue *ret) 179 179 { 180 if (getShapeType() != Model::SHAPE _BALL_AND_STICK)180 if (getShapeType() != Model::SHAPETYPE_BALL_AND_STICK) 181 181 ret->setEmpty(); 182 182 Model *m = new Model;
Note: See TracChangeset
for help on using the changeset viewer.