Fixed issue where BSP surface transforms could get broken when applying them to geometry surfaces which are out of sync with the owner Brush (because Auto Build BSP is disabled).

#jira UE-15373 - Rotating brushes and UVs cause materials to stretch on BSPs

[CL 2568322 by Richard TalbotWatkin in Main branch]
This commit is contained in:
Richard TalbotWatkin
2015-05-28 07:24:12 -04:00
committed by epic@richtech.es
parent 67f66a9575
commit 117c5af950
4 changed files with 35 additions and 7 deletions

View File

@@ -1160,6 +1160,13 @@ int UEditorEngine::bspBrushCSG
const FRotator Rotation = Actor->GetActorRotation();
const FVector Location = Actor->GetActorLocation();
// Cache actor transform which is used for the geometry being built
Brush->OwnerLocationWhenLastBuilt = Location;
Brush->OwnerRotationWhenLastBuilt = Rotation;
Brush->OwnerScaleWhenLastBuilt = Scale;
Brush->OwnerPrepivotWhenLastBuilt = PrePivot;
Brush->bCachedOwnerTransformValid = true;
for( i=0; i<Brush->Polys->Element.Num(); i++ )
{
FPoly& CurrentPoly = Brush->Polys->Element[i];