Skip to content

Commit eed44bd

Browse files
committed
Removed Dialog Popup and Debug Log Error
1 parent 1d3e9c4 commit eed44bd

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

Assets/FbxExporters/Editor/FbxPrefabAutoUpdater.cs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,6 @@ public static bool OnValidateMenuItem()
204204

205205
if (selection == null || selection.Length == 0)
206206
{
207-
string errorMessage = "No GameObjects selected for update.";
208-
if (runningUnitTest)
209-
{
210-
Debug.LogError(errorMessage);
211-
LogAssert.Expect(LogType.Error, errorMessage);
212-
}
213-
else
214-
{
215-
DisplayNoSelectionDialog(errorMessage);
216-
}
217207
return false;
218208
}
219209

@@ -228,21 +218,6 @@ public static bool OnValidateMenuItem()
228218
}
229219
}
230220

231-
if (!containsLinkedPrefab)
232-
{
233-
string errorMessage = "No linked prefabs selected.";
234-
if (runningUnitTest)
235-
{
236-
Debug.LogError(errorMessage);
237-
LogAssert.Expect(LogType.Error, errorMessage);
238-
}
239-
else
240-
{
241-
DisplayNoSelectionDialog(errorMessage);
242-
}
243-
}
244-
245-
246221
return containsLinkedPrefab;
247222
}
248223

0 commit comments

Comments
 (0)