void GusdPrimWrapper::addLeadingBookend( double curFrame, double startFrame ) { if( curFrame != startFrame ) { double bookendFrame = curFrame - TIME_SAMPLE_DELTA; // Ensure the stage start frame <= bookendFrame UsdStagePtr stage = getUsdPrimForWrite().GetPrim().GetStage(); if(stage) { double startFrame = stage->GetStartTimeCode(); if( startFrame > bookendFrame) { stage->SetStartTimeCode(bookendFrame); } } getUsdPrimForWrite().GetVisibilityAttr().Set(UsdGeomTokens->invisible, UsdTimeCode(bookendFrame)); getUsdPrimForWrite().GetVisibilityAttr().Set(UsdGeomTokens->inherited, UsdTimeCode(curFrame)); } }