Skip to content

Commit ad5ebac

Browse files
authored
Merge pull request #203 from umasteeringgroup/Fix-28RC3
Fix 28 rc3
2 parents 6215232 + 0300143 commit ad5ebac

File tree

5 files changed

+10
-169
lines changed

5 files changed

+10
-169
lines changed

UMAProject/Assets/UMA/Core/Extensions/DynamicCharacterSystem/Scripts/UMAAssetIndexer.cs

+5-20
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ namespace UMA
1414
public class UMAAssetIndexer : ScriptableObject, ISerializationCallbackReceiver
1515
{
1616

17-
#if UNITY_EDITOR_OR_HELL_FREEZES_OVER
18-
[UnityEditor.MenuItem("Assets/Create/UMA/Misc/AssetIndex")]
19-
public static void CreateAssetIndex()
20-
{
21-
UMA.CustomAssetUtility.CreateAsset<UMAAssetIndexer>();
22-
}
23-
#endif
2417
#region constants and static strings
2518
public static string SortOrder = "Name";
2619
public static string[] SortOrders = { "Name", "AssetName" };
@@ -107,24 +100,16 @@ public static UMAAssetIndexer Instance
107100
{
108101
if (theIndex == null || theIndexer == null)
109102
{
110-
#if UNITY_EDITOR
111103
var st = StartTimer();
112104
theIndexer = Resources.Load("AssetIndexer") as UMAAssetIndexer;
113-
// if (theIndex == null)
114-
// {
115-
// return null;
116-
// }
117-
//theIndexer = theIndex.GetComponent<UMAAssetIndexer>();
118105
if (theIndexer == null)
119-
{
120-
return null;
106+
{
107+
if (Debug.isDebugBuild)
108+
{
109+
Debug.LogError("Unable to load the AssetIndexer. This item is used to index non-asset bundle resources and is required.");
110+
}
121111
}
122112
StopTimer(st,"Asset index load");
123-
#else
124-
theIndex = GameObject.Instantiate(Resources.Load<GameObject>("AssetIndexer")) as GameObject;
125-
theIndex.hideFlags = HideFlags.HideAndDontSave;
126-
theIndexer = theIndex.GetComponent<UMAAssetIndexer>();
127-
#endif
128113
}
129114
return theIndexer;
130115
}

UMAProject/Assets/UMA/Core/Scripts/DynamicDNAConverterController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ public float baseScale
147147
{
148148
get { return _overallModifiers.scale; }
149149
}
150-
150+
#if UNITY_EDITOR
151151
public void ImportConverterBehaviourData(DynamicDNAConverterBehaviour DCB)
152152
{
153153
_dnaAsset = DCB.dnaAsset;
154154
_overallModifiers.ImportSettings(DCB.overallModifiers);
155155
}
156-
156+
#endif
157157
public void Prepare()
158158
{
159159
if (!_prepared)

UMAProject/Assets/UMA/Core/StandardAssets/UMA/Scripts/DNAConverterListTester.cs

-133
This file was deleted.

UMAProject/Assets/UMA/Core/StandardAssets/UMA/Scripts/DNAConverterListTester.cs.meta

-13
This file was deleted.

UMAProject/Assets/UMA/Core/StandardAssets/UMA/Scripts/RaceData.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,13 @@ public void UpdateDictionary()
197197
//UMA2.8+ call Prepare() on the elements in _dnaConverterList now.
198198
for (int i = 0; i < _dnaConverterList.Count; i++)
199199
{
200+
#if UNITY_EDITOR
200201
//Do we do update nagging here?
201-
if(_dnaConverterList[i] is UMA.CharacterSystem.DynamicDNAConverterBehaviour)
202+
if (_dnaConverterList[i] is UMA.CharacterSystem.DynamicDNAConverterBehaviour)
202203
{
203204
(_dnaConverterList[i] as UMA.CharacterSystem.DynamicDNAConverterBehaviour).DoUpgradeNag(this);
204205
}
206+
#endif
205207
_dnaConverterList[i].Prepare();
206208
}
207209
}

0 commit comments

Comments
 (0)