You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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:
committed by
epic@richtech.es
parent
67f66a9575
commit
117c5af950
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user