bool TupCommandExecutor::expandFrame(TupFrameResponse *response) { int scenePos = response->sceneIndex(); int layerPos = response->layerIndex(); int position = response->frameIndex(); int times = response->arg().toInt(); TupScene *scene = m_project->scene(scenePos); if (!scene) return false; TupLayer *layer = scene->layer(layerPos); if (layer) { if (layer->expandFrame(position, times)) { emit responsed(response); return true; } } return false; }