Skip to content

Commit e845d98

Browse files
committed
assert constraints are not null instead of null
1 parent 1f2abaa commit e845d98

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ protected void AddFbxNodeToConstraintsMapping<T>(FbxNode fbxNode, T fbxConstrain
14931493
protected bool ExportPositionConstraint(IConstraint uniConstraint, FbxScene fbxScene, FbxNode fbxNode)
14941494
{
14951495
var uniPosConstraint = uniConstraint as PositionConstraint;
1496-
Debug.Assert (uniPosConstraint == null);
1496+
Debug.Assert (uniPosConstraint != null);
14971497

14981498
FbxConstraintPosition fbxPosConstraint = FbxConstraintPosition.Create(fbxScene, fbxNode.GetName() + "_positionConstraint");
14991499
fbxPosConstraint.SetConstrainedObject(fbxNode);
@@ -1519,7 +1519,7 @@ protected bool ExportPositionConstraint(IConstraint uniConstraint, FbxScene fbxS
15191519
protected bool ExportRotationConstraint(IConstraint uniConstraint, FbxScene fbxScene, FbxNode fbxNode)
15201520
{
15211521
var uniRotConstraint = uniConstraint as RotationConstraint;
1522-
Debug.Assert(uniRotConstraint == null);
1522+
Debug.Assert(uniRotConstraint != null);
15231523

15241524
FbxConstraintRotation fbxRotConstraint = FbxConstraintRotation.Create(fbxScene, fbxNode.GetName() + "_rotationConstraint");
15251525
fbxRotConstraint.SetConstrainedObject(fbxNode);
@@ -1549,7 +1549,7 @@ protected bool ExportRotationConstraint(IConstraint uniConstraint, FbxScene fbxS
15491549
protected bool ExportScaleConstraint(IConstraint uniConstraint, FbxScene fbxScene, FbxNode fbxNode)
15501550
{
15511551
var uniScaleConstraint = uniConstraint as ScaleConstraint;
1552-
Debug.Assert(uniScaleConstraint == null);
1552+
Debug.Assert(uniScaleConstraint != null);
15531553

15541554
FbxConstraintScale fbxScaleConstraint = FbxConstraintScale.Create(fbxScene, fbxNode.GetName() + "_scaleConstraint");
15551555
fbxScaleConstraint.SetConstrainedObject(fbxNode);
@@ -1577,7 +1577,7 @@ protected bool ExportScaleConstraint(IConstraint uniConstraint, FbxScene fbxScen
15771577
protected bool ExportAimConstraint(IConstraint uniConstraint, FbxScene fbxScene, FbxNode fbxNode)
15781578
{
15791579
var uniAimConstraint = uniConstraint as AimConstraint;
1580-
Debug.Assert(uniAimConstraint == null);
1580+
Debug.Assert(uniAimConstraint != null);
15811581

15821582
FbxConstraintAim fbxAimConstraint = FbxConstraintAim.Create(fbxScene, fbxNode.GetName() + "_aimConstraint");
15831583
fbxAimConstraint.SetConstrainedObject(fbxNode);
@@ -1638,7 +1638,7 @@ protected bool ExportAimConstraint(IConstraint uniConstraint, FbxScene fbxScene,
16381638
protected bool ExportParentConstraint(IConstraint uniConstraint, FbxScene fbxScene, FbxNode fbxNode)
16391639
{
16401640
var uniParentConstraint = uniConstraint as ParentConstraint;
1641-
Debug.Assert(uniParentConstraint == null);
1641+
Debug.Assert(uniParentConstraint != null);
16421642

16431643
FbxConstraintParent fbxParentConstraint = FbxConstraintParent.Create(fbxScene, fbxNode.GetName() + "_parentConstraint");
16441644
fbxParentConstraint.SetConstrainedObject(fbxNode);

0 commit comments

Comments
 (0)