Skip to content

Commit 4068219

Browse files
committed
remove unused variable and tests that are no longer necessary
1 parent 2498d82 commit 4068219

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

com.unity.formats.fbx/Editor/FbxExporter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1959,7 +1959,6 @@ private void ExportAnimationCurve (FbxNode fbxNode,
19591959
internal class UnityToMayaConvertSceneHelper
19601960
{
19611961
bool convertDistance = false;
1962-
bool convertLtoR = false;
19631962
bool convertToRadian = false;
19641963

19651964
float unitScaleFactor = 1f;

com.unity.formats.fbx/Tests/FbxTests/ModelExporterTest.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,6 @@ public void TestBasics ()
4343
var b = new Vector3(0,0,1);
4444
var crossLeft = Vector3.Cross(a,b);
4545

46-
var afbx = ModelExporter.ConvertToRightHanded(a);
47-
var bfbx = ModelExporter.ConvertToRightHanded(b);
48-
Assert.AreEqual(ModelExporter.ConvertToRightHanded(crossLeft), bfbx.CrossProduct(afbx));
49-
50-
// Test scale conversion. Nothing complicated here...
51-
var afbxPosition = ModelExporter.ConvertToRightHanded(a, ModelExporter.UnitScaleFactor);
52-
Assert.AreEqual(100, afbxPosition.Length());
53-
54-
// Test rotation conversion.
55-
var q = Quaternion.Euler(new Vector3(0, 90, 0));
56-
var fbxAngles = ModelExporter.ConvertQuaternionToXYZEuler(q);
57-
Assert.AreEqual(fbxAngles.X, 0);
58-
Assert.That(fbxAngles.Y, Is.InRange(-90.001, -89.999));
59-
Assert.AreEqual(fbxAngles.Z, 0);
60-
6146
Assert.That(ModelExporter.DefaultMaterial);
6247

6348
// Test non-static functions.

0 commit comments

Comments
 (0)