Skip to content

Commit 074586c

Browse files
author
Sander van Rossen
committed
Explicitly using ExportType with its entire namespace b/c conflicts
1 parent a8c1301 commit 074586c

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

RealtimeCSG/Assets/Plugins/RealtimeCSG/API/Foundation/Editor/Version.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace RealtimeCSG.Foundation
22
{
33
internal static class Versioning
44
{
5-
public const string PluginVersion = "1_568";
5+
public const string PluginVersion = "1_569";
66
public const string PluginDLLVersion = "1_559";
77
}
88
}

RealtimeCSG/Assets/Plugins/RealtimeCSG/Editor/Scripts/Control/Managers/MeshInstanceManager.Export.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ namespace InternalRealtimeCSG
1010
{
1111
internal sealed partial class MeshInstanceManager
1212
{
13-
public static void Export(CSGModel model, ExportType exportType, bool exportColliders)
13+
public static void Export(CSGModel model, RealtimeCSG.Components.ExportType exportType, bool exportColliders)
1414
{
1515
string typeName;
1616
string extension;
1717
switch (exportType)
1818
{
19-
case ExportType.FBX: typeName = "FBX"; extension = @"fbx"; break;
19+
case RealtimeCSG.Components.ExportType.FBX: typeName = "FBX"; extension = @"fbx"; break;
2020
default:
21-
//case ExportType.UnityMesh:
22-
typeName = "Mesh"; extension = @"prefab"; exportType = ExportType.UnityMesh; break;
21+
//case RealtimeCSG.Components.ExportType.UnityMesh:
22+
typeName = "Mesh"; extension = @"prefab"; exportType = RealtimeCSG.Components.ExportType.UnityMesh; break;
2323
}
2424
var newPath = model.exportPath;
25-
if (exportType != ExportType.UnityMesh)
25+
if (exportType != RealtimeCSG.Components.ExportType.UnityMesh)
2626
{
2727
newPath = UnityFBXExporter.ExporterMenu.GetNewPath(model.gameObject, typeName, extension, model.exportPath);
2828
if (string.IsNullOrEmpty(newPath))
@@ -232,7 +232,7 @@ public static void Export(CSGModel model, ExportType exportType, bool exportColl
232232
GameObject modelGameObject;
233233
switch (exportType)
234234
{
235-
case ExportType.FBX:
235+
case RealtimeCSG.Components.ExportType.FBX:
236236
{
237237
if (!UnityFBXExporter.FBXExporter.ExportGameObjToFBX(tempExportObject, newPath, exportColliders: exportColliders))
238238
{
@@ -260,7 +260,7 @@ public static void Export(CSGModel model, ExportType exportType, bool exportColl
260260
break;
261261
}
262262
default:
263-
//case ExportType.UnityMesh:
263+
//case RealtimeCSG.Components.ExportType.UnityMesh:
264264
{
265265
prefabObj = tempExportObject;// AssetDatabase.LoadAssetAtPath<UnityEngine.Object>(newPath);
266266
modelGameObject = tempExportObject;
@@ -278,7 +278,7 @@ public static void Export(CSGModel model, ExportType exportType, bool exportColl
278278

279279
model.exportPath = newPath;
280280

281-
if (exportType == ExportType.FBX && prefabObj)
281+
if (exportType == RealtimeCSG.Components.ExportType.FBX && prefabObj)
282282
{
283283
foreach (var meshRenderer in prefabObj.GetComponentsInChildren<MeshRenderer>())
284284
{
@@ -373,7 +373,7 @@ public static void Export(CSGModel model, ExportType exportType, bool exportColl
373373
{
374374
switch (exportType)
375375
{
376-
case ExportType.FBX:
376+
case RealtimeCSG.Components.ExportType.FBX:
377377
{
378378
UnityEngine.Object.DestroyImmediate(tempExportObject);
379379
break;

RealtimeCSG/Assets/Plugins/RealtimeCSG/Editor/Scripts/View/GUI/ComponentEditorWindows/CSGModelComponent.Inspector.GUI.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public static void OnInspectorGUI(UnityEngine.Object[] targets)
194194
#if UNITY_2017_3_OR_NEWER
195195
var CookingOptions = models[0].MeshColliderCookingOptions;
196196
#endif
197-
ExportType? ExportType = models[0].exportType;
197+
RealtimeCSG.Components.ExportType? ExportType = models[0].exportType;
198198
OriginType? OriginType = models[0].originType;
199199
#if UNITY_2019_2_OR_NEWER
200200
ReceiveGI? MeshReceiveGI = models[0].ReceiveGI;
@@ -244,7 +244,7 @@ public static void OnInspectorGUI(UnityEngine.Object[] targets)
244244
#else
245245
var currGenerateLightMaps = (currStaticFlags & StaticEditorFlags.LightmapStatic) == StaticEditorFlags.LightmapStatic;
246246
#endif
247-
ExportType currExportType = models[i].exportType;
247+
RealtimeCSG.Components.ExportType currExportType = models[i].exportType;
248248
OriginType currOriginType = models[i].originType;
249249
#if UNITY_2019_2_OR_NEWER
250250
ReceiveGI currReceiveGI = models[i].ReceiveGI;
@@ -437,7 +437,7 @@ public static void OnInspectorGUI(UnityEngine.Object[] targets)
437437
EditorGUI.BeginChangeCheck();
438438
{
439439
EditorGUI.showMixedValue = !ExportType.HasValue;
440-
ExportType = (ExportType)EditorGUILayout.EnumPopup(ExportType ?? Components.ExportType.FBX, popupStyle);
440+
ExportType = (RealtimeCSG.Components.ExportType)EditorGUILayout.EnumPopup(ExportType ?? RealtimeCSG.Components.ExportType.FBX, popupStyle);
441441
EditorGUI.showMixedValue = false;
442442
}
443443
if (EditorGUI.EndChangeCheck() && ExportType.HasValue)

0 commit comments

Comments
 (0)