ccHObject::Container vombat::filterObjectsByKind(const ccHObject::Container& in, const CC_CLASS_ENUM ThisType) { if (in.empty()) return in; ccHObject::Container out; for (ccHObject* obj : in) { if (obj->isKindOf(ThisType)) { out.push_back(obj); } } return out; }
void qAnimation::onNewSelection(const ccHObject::Container& selectedEntities) { if (m_action) m_action->setEnabled(!selectedEntities.empty()); }