Fix transform scaling applying to nested objects when drawing
#1796 #1350
This commit is contained in:
@@ -64,7 +64,7 @@ bool cacheStaticGeometryTree(Actor* actor, ShadowsOfMordor::Builder::SceneBuildC
|
||||
if (useLightmap && anyValid && entry.Scale > ZeroTolerance)
|
||||
{
|
||||
Matrix worldMatrix;
|
||||
staticModel->GetTransform().GetWorld(worldMatrix);
|
||||
staticModel->GetLocalToWorldMatrix(worldMatrix);
|
||||
entry.Box = model->GetBox(worldMatrix);
|
||||
results.Add(entry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user