History

don't include overlays in results from EntityScriptingInterface::getChildrenIDsOfJoint

Seth Alves committed 9 years ago

Commit 3b4f5e31 parent 7ab3e601 file · +4 −3Browse files

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

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+4−3
@@ -1336,11 +1336,11 @@ bool EntityScriptingInterface::isChildOfParent(QUuid childID, QUuid parentID) { · 1335 unmodified lines
13361336 parent->forEachDescendant([&](SpatiallyNestablePointer descendant) {
13371337 if(descendant->getID() == childID) {
13381338 isChild = true;
1339− return;
1339+ return;
13401340 }
13411341 });
13421342 });
1343−
1343+
13441344 return isChild;
13451345 }
13461346
@@ -1364,7 +1364,8 @@ QVector<QUuid> EntityScriptingInterface::getChildrenIDsOfJoint(const QUuid& pare · 17 unmodified lines
13641364 return;
13651365 }
13661366 parent->forEachChild([&](SpatiallyNestablePointer child) {
1367− if (child->getParentJointIndex() == jointIndex) {
1367+ if (child->getParentJointIndex() == jointIndex &&
1368+ child->getNestableType() != NestableType::Overlay) {
13681369 result.push_back(child->getID());
13691370 }
13701371 });