Changeset 544 for cpp/frams/model/model.cpp
- Timestamp:
- 07/28/16 01:09:29 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/model.cpp
r536 r544 944 944 if (p->p.z + p->size > bbmax.z) bbmax.z = p->p.z + p->size; 945 945 if (shape == SHAPE_UNKNOWN) 946 shape = (p->shape == Part::SHAPE_ DEFAULT) ? SHAPE_OLD : SHAPE_NEW;946 shape = (p->shape == Part::SHAPE_BALL_AND_STICK) ? SHAPE_BALL_AND_STICK : SHAPE_SOLIDS; 947 947 else if (shape != SHAPE_ILLEGAL) 948 948 { 949 if ((p->shape == Part::SHAPE_ DEFAULT) ^ (shape == SHAPE_OLD))949 if ((p->shape == Part::SHAPE_BALL_AND_STICK) ^ (shape == SHAPE_BALL_AND_STICK)) 950 950 { 951 951 shape = SHAPE_ILLEGAL; 952 logPrintf("Model", "internalCheck", LOG_WARN, "Inconsistent part shapes (mixed old and new shapes)%s", nameForErrors().c_str());952 logPrintf("Model", "internalCheck", LOG_WARN, "Inconsistent part shapes (mixed ball-and-stick and solids shape types)%s", nameForErrors().c_str()); 953 953 } 954 954 } … … 1014 1014 if (final) 1015 1015 { 1016 if (j->shape != Joint::SHAPE_ SOLID)1016 if (j->shape != Joint::SHAPE_FIXED) 1017 1017 { 1018 1018 if (j->d() > getMaxJoint().d.x) … … 1031 1031 if (shape != SHAPE_ILLEGAL) 1032 1032 { 1033 if ((j->shape == Joint::SHAPE_ DEFAULT) ^ (shape == SHAPE_OLD))1033 if ((j->shape == Joint::SHAPE_BALL_AND_STICK) ^ (shape == SHAPE_BALL_AND_STICK)) 1034 1034 { 1035 1035 shape = SHAPE_ILLEGAL; … … 1363 1363 if ((oj2->part1 == op) || (oj2->part2 == op)) 1364 1364 { 1365 addNewJoint(getPart(j), getPart(j2), Joint::SHAPE_ SOLID);1365 addNewJoint(getPart(j), getPart(j2), Joint::SHAPE_FIXED); 1366 1366 } 1367 1367 }
Note: See TracChangeset
for help on using the changeset viewer.