void UModel::PostLoad() { Super::PostLoad(); if( FApp::CanEverRender() && !HasAnyFlags(RF_ClassDefaultObject) ) { UpdateVertices(); } // If in the editor, initialize each surface to hidden or not depending upon // whether the poly flag dictates being hidden at editor startup or not if ( GIsEditor ) { for ( TArray<FBspSurf>::TIterator SurfIter( Surfs ); SurfIter; ++SurfIter ) { FBspSurf& CurSurf = *SurfIter; CurSurf.bHiddenEdTemporary = ( ( CurSurf.PolyFlags & PF_HiddenEd ) != 0 ); CurSurf.bHiddenEdLevel = 0; } #if WITH_EDITOR if (ABrush* Owner = Cast<ABrush>(GetOuter())) { OwnerLocationWhenLastBuilt = Owner->GetActorLocation(); OwnerPrepivotWhenLastBuilt = Owner->GetPrePivot(); OwnerScaleWhenLastBuilt = Owner->GetActorScale(); OwnerRotationWhenLastBuilt = -Owner->GetActorRotation(); bCachedOwnerTransformValid = true; } #endif } }
void UModel::PostLoad() { Super::PostLoad(); if( FApp::CanEverRender() && !HasAnyFlags(RF_ClassDefaultObject) ) { UpdateVertices(); } // If in the editor, initialize each surface to hidden or not depending upon // whether the poly flag dictates being hidden at editor startup or not if ( GIsEditor ) { for ( TArray<FBspSurf>::TIterator SurfIter( Surfs ); SurfIter; ++SurfIter ) { FBspSurf& CurSurf = *SurfIter; CurSurf.bHiddenEdTemporary = ( ( CurSurf.PolyFlags & PF_HiddenEd ) != 0 ); CurSurf.bHiddenEdLevel = 0; } } }