Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
void qAnimation::onNewSelection(const ccHObject::Container& selectedEntities)
{
	if (m_action)
		m_action->setEnabled(!selectedEntities.empty());
}