Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1084,7 +1084,9 @@ QVector<QUuid> EntityScriptingInterface::getChildrenIDsOfJoint(const QUuid& pare · 1083 unmodified lines | |||
| 1084 | return; | 1084 | return; |
| 1085 | } | 1085 | } |
| 1086 | parent->forEachChild([&](SpatiallyNestablePointer child) { | 1086 | parent->forEachChild([&](SpatiallyNestablePointer child) { |
| 1087 | result.push_back(child->getID()); | 1087 | if (child->getParentJointIndex() == jointIndex) { |
| 1088 | result.push_back(child->getID()); | ||
| 1089 | } | ||
| 1088 | }); | 1090 | }); |
| 1089 | }); | 1091 | }); |
| 1090 | return result; | 1092 | return result; |