@@ -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 ;
0 commit comments