- Timestamp:
- 07/20/16 14:57:42 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/model.cpp
r534 r536 918 918 p->owner = this; 919 919 p->refno = i; 920 if (p->shape == 0) 921 { 922 if (checklevel > 0) 923 p->mass = 0.0; 924 } 920 if (checklevel > 0) 921 p->mass = 0.0; 925 922 //VALIDMINMAX(p,part,mass);//mass is very special 926 923 // VALIDMINMAX are managed manually when adding part properties in f0-def! … … 976 973 j->p2_refno = j->part2->refno; 977 974 if (checklevel > 0) 978 { 979 if (j->part1->shape == 0) 980 j->part1->mass += 1.0; 981 if (j->part2->shape == 0) 982 j->part2->mass += 1.0; 983 } 975 { 976 j->part1->mass += 1.0; 977 j->part2->mass += 1.0; 978 } 984 979 if ((j->usedelta) && ((j->d.x != JOINT_DELTA_MARKER) || (j->d.y != JOINT_DELTA_MARKER) || (j->d.z != JOINT_DELTA_MARKER))) 985 980 { // delta positioning -> calc. orient. … … 1071 1066 { 1072 1067 p = (Part*)parts(i); 1073 if (p->shape == 0) 1074 if (p->mass <= 0.001) 1075 p->mass = 1.0; 1068 if (p->mass <= 0.001) 1069 p->mass = 1.0; 1076 1070 p->flags &= ~LINKFLAG; 1077 1071 }
Note: See TracChangeset
for help on using the changeset viewer.