Skip to content

Commit 0839a42

Browse files
authored
Merge pull request #447 from Unity-Technologies/UNI-64610-disable-linked-prefab-in-2018.3
Uni 64610 disable linked prefab in 2018.3
2 parents 33749c8 + d17ca2e commit 0839a42

29 files changed

+265
-40
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ ExportedObj/
5555

5656
# Unity3D generated meta files
5757
*.pidb.meta
58+
*.DS_Store
5859

5960
# Unity3D Generated File On Crash Reports
6061
sysinfo.txt

TestProjects/FbxTests/Assets/Editor/FbxTests/ConvertToModelTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !UNITY_2018_3_OR_NEWER
12
using UnityEngine;
23
using UnityEditor;
34
using NUnit.Framework;
@@ -499,3 +500,4 @@ public void TestConvertModelInstance()
499500
}
500501
}
501502
}
503+
#endif // !UNITY_2018_3_OR_NEWER

TestProjects/FbxTests/Assets/Editor/FbxTests/FbxPrefabAutoUpdaterTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !UNITY_2018_3_OR_NEWER
12
using UnityEngine;
23
using UnityEditor;
34
using NUnit.Framework;
@@ -431,3 +432,4 @@ public void ExpensivePerformanceTest ()
431432
}
432433
}
433434
}
435+
#endif // !UNITY_2018_3_OR_NEWER

TestProjects/FbxTests/Assets/Editor/FbxTests/FbxPrefabTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if !UNITY_2018_3_OR_NEWER
12
using UnityEngine;
23
using UnityEditor;
34
using NUnit.Framework;
@@ -700,3 +701,4 @@ public void TestFbxRepresentation()
700701
}
701702
}
702703
}
704+
#endif // !UNITY_2018_3_OR_NEWER

TestProjects/FbxTests/Assets/Editor/FbxTests/ModelExporterTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ public void LODExportTest(){
821821
expectedChildren = new HashSet<string> () { cubeLOD2.name };
822822
CompareGameObjectChildren (fbxObj, expectedChildren);
823823

824+
#if !UNITY_2018_3_OR_NEWER
824825
// test convert to prefab
825826
// this should have the same result as "export all"
826827
// expected LODs exported: Sphere_LOD0, Capsule_LOD0, Cube_LOD2
@@ -839,6 +840,7 @@ public void LODExportTest(){
839840

840841
expectedChildren = new HashSet<string> () { sphereLOD0.name, capsuleLOD0.name, cubeLOD2.name };
841842
CompareGameObjectChildren (fbxObj, expectedChildren);
843+
#endif
842844
}
843845

844846

TestProjects/FbxTests/Assets/Scripts/ExporterTestBase.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,21 @@ public abstract class ExporterTestBase : ExporterTestBaseAPI
1414
[TearDown]
1515
public override void Term ()
1616
{
17+
#if !UNITY_2018_3_OR_NEWER
1718
// Put back the initial setting for the auto-updater toggle
1819
ExportSettings.instance.AutoUpdaterEnabled = isAutoUpdaterOn;
20+
#endif
1921
base.Term();
2022
}
2123

2224
[SetUp]
2325
public override void Init()
2426
{
2527
base.Init();
28+
#if !UNITY_2018_3_OR_NEWER
2629
isAutoUpdaterOn = ExportSettings.instance.AutoUpdaterEnabled;
2730
ExportSettings.instance.AutoUpdaterEnabled = true;
31+
#endif
2832
}
2933

3034
/// <summary>
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
* [FBX Exporter](index)
2-
* [Exporting FBX files from Unity](exporting)
3-
* [Converting GameObjects to Linked Prefabs](prefabs)
4-
* [Integrating Unity with 3D modeling software](integration)
5-
* [Setting FBX Export options](options)
6-
* [Developer's guide](devguide)
2+
* [Exporting FBX files from Unity](exporting)
3+
* [Using Prefabs to connect Unity and your 3D modeling software](prefabs-overview)
4+
* [Unity 2018.2: Linked Prefabs](prefabs)
5+
* [Unity 2018.3: Variant Prefabs](nested-prefabs)
6+
* [Integrating Unity with 3D modeling software](integration)
7+
* [Setting FBX Export options](options)
8+
* [Developer's guide](devguide)
37.6 KB
Loading
25.4 KB
Loading
28.2 KB
Loading

0 commit comments

Comments
 (0)