@@ -10,19 +10,19 @@ namespace InternalRealtimeCSG
10
10
{
11
11
internal sealed partial class MeshInstanceManager
12
12
{
13
- public static void Export ( CSGModel model , ExportType exportType , bool exportColliders )
13
+ public static void Export ( CSGModel model , RealtimeCSG . Components . ExportType exportType , bool exportColliders )
14
14
{
15
15
string typeName ;
16
16
string extension ;
17
17
switch ( exportType )
18
18
{
19
- case ExportType . FBX : typeName = "FBX" ; extension = @"fbx" ; break ;
19
+ case RealtimeCSG . Components . ExportType . FBX : typeName = "FBX" ; extension = @"fbx" ; break ;
20
20
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 ;
23
23
}
24
24
var newPath = model . exportPath ;
25
- if ( exportType != ExportType . UnityMesh )
25
+ if ( exportType != RealtimeCSG . Components . ExportType . UnityMesh )
26
26
{
27
27
newPath = UnityFBXExporter . ExporterMenu . GetNewPath ( model . gameObject , typeName , extension , model . exportPath ) ;
28
28
if ( string . IsNullOrEmpty ( newPath ) )
@@ -232,7 +232,7 @@ public static void Export(CSGModel model, ExportType exportType, bool exportColl
232
232
GameObject modelGameObject ;
233
233
switch ( exportType )
234
234
{
235
- case ExportType . FBX :
235
+ case RealtimeCSG . Components . ExportType . FBX :
236
236
{
237
237
if ( ! UnityFBXExporter . FBXExporter . ExportGameObjToFBX ( tempExportObject , newPath , exportColliders : exportColliders ) )
238
238
{
@@ -260,7 +260,7 @@ public static void Export(CSGModel model, ExportType exportType, bool exportColl
260
260
break ;
261
261
}
262
262
default :
263
- //case ExportType.UnityMesh:
263
+ //case RealtimeCSG.Components. ExportType.UnityMesh:
264
264
{
265
265
prefabObj = tempExportObject ; // AssetDatabase.LoadAssetAtPath<UnityEngine.Object>(newPath);
266
266
modelGameObject = tempExportObject ;
@@ -278,7 +278,7 @@ public static void Export(CSGModel model, ExportType exportType, bool exportColl
278
278
279
279
model . exportPath = newPath ;
280
280
281
- if ( exportType == ExportType . FBX && prefabObj )
281
+ if ( exportType == RealtimeCSG . Components . ExportType . FBX && prefabObj )
282
282
{
283
283
foreach ( var meshRenderer in prefabObj . GetComponentsInChildren < MeshRenderer > ( ) )
284
284
{
@@ -373,7 +373,7 @@ public static void Export(CSGModel model, ExportType exportType, bool exportColl
373
373
{
374
374
switch ( exportType )
375
375
{
376
- case ExportType . FBX :
376
+ case RealtimeCSG . Components . ExportType . FBX :
377
377
{
378
378
UnityEngine . Object . DestroyImmediate ( tempExportObject ) ;
379
379
break ;
0 commit comments