Skip to content

Commit 8c3e95b

Browse files
committed
use is instead of .Equals
1 parent d97705c commit 8c3e95b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/FbxExporters/Editor/ConvertToModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private static void CopyComponents(GameObject from, GameObject to){
170170
if (toComponent != null) {
171171
// don't want to copy MeshFilter because then we will replace the
172172
// exported mesh with the old mesh
173-
if (!toComponent.GetType ().Equals (typeof(MeshFilter))) {
173+
if (!(toComponent is MeshFilter)) {
174174
success = UnityEditorInternal.ComponentUtility.PasteComponentValues (toComponent);
175175
}
176176
} else {

0 commit comments

Comments
 (0)