History

fix SpatiallyNestable::getChildren

Seth Alves committed 10 years ago

Commit 5bf86701 parent 5594f1e3 files · +6 −3Browse files

Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 3 files). Show all

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+3−1
@@ -1084,7 +1084,9 @@ QVector<QUuid> EntityScriptingInterface::getChildrenIDsOfJoint(const QUuid& pare · 1083 unmodified lines
10841084 return;
10851085 }
10861086 parent->forEachChild([&](SpatiallyNestablePointer child) {
1087− result.push_back(child->getID());
1087+ if (child->getParentJointIndex() == jointIndex) {
1088+ result.push_back(child->getID());
1089+ }
10881090 });
10891091 });
10901092 return result;