Skip to content

Commit 2c3d3e4

Browse files
committed
Addressed U-PR bot comments
1 parent 62718d8 commit 2c3d3e4

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

com.unity.netcode.gameobjects/Runtime/Components/Helpers/NetworkObjectBridge.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,16 @@ internal static void ApplyPostTransformMatrixScale(this GhostObject ghost, Vecto
100100
{
101101
entityManager.SetComponentData(entity, new PostTransformMatrix { Value = Unity.Mathematics.float4x4.Scale(scale) });
102102
}
103-
else
103+
else if (Mathf.Approximately(scale.x, scale.y) && Mathf.Approximately(scale.y, scale.z))
104104
{
105105
var localTransform = entityManager.GetComponentData<LocalTransform>(entity);
106106
localTransform.Scale = scale.x;
107107
entityManager.SetComponentData(entity, localTransform);
108108
}
109+
else
110+
{
111+
entityManager.AddComponentData(entity, new PostTransformMatrix { Value = Unity.Mathematics.float4x4.Scale(scale) });
112+
}
109113
}
110114
}
111115
}

testproject/Packages/manifest-unified.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"com.unity.ide.visualstudio": "2.0.26",
99
"com.unity.mathematics": "1.4.0",
1010
"com.unity.multiplayer.tools": "2.2.11",
11-
"com.unity.netcode": "6.7.0",
11+
"com.unity.netcode": "7.0.0",
1212
"com.unity.netcode.gameobjects": "file:../../com.unity.netcode.gameobjects",
1313
"com.unity.package-validation-suite": "0.49.0-preview",
1414
"com.unity.services.authentication": "3.7.4",

0 commit comments

Comments
 (0)