static bool isLocked_imp(const boost::shared_ptr<RotoLayer>& item) { if ( item->getLocked() ) { return true; } else { boost::shared_ptr<RotoLayer> parent = item->getParentLayer(); if (parent) { return isLocked_imp(parent); } } return false; }
static bool isLocked_imp(const RotoLayerPtr& item) { if ( item->getLocked() ) { return true; } else { RotoLayerPtr parent = item->getParentLayer(); if (parent) { return isLocked_imp(parent); } } return false; }
bool RotoItem::isLockedRecursive() const { RotoLayerPtr parent; { QMutexLocker l(&itemMutex); if (_imp->locked) { return true; } parent = _imp->parentLayer.lock(); } if (parent) { return isLocked_imp(parent); } else { return false; } }