Skip to content

Commit 004ea42

Browse files
committed
Alpha release of v2.13
1 parent 279dbab commit 004ea42

File tree

11 files changed

+344
-143
lines changed

11 files changed

+344
-143
lines changed

Diff for: unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Components/IJanusObject.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
#if UNITY_EDITOR
2+
using System;
23
using System.Collections.Generic;
34
using System.Linq;
45
using System.Text;
@@ -10,3 +11,4 @@ public interface IJanusObject
1011
void UpdateScale(float scale);
1112
}
1213
}
14+
#endif

Diff for: unity/Project/JanusExporter/Assets/JanusExporter/Codebase/Editor/Windows/JanusVRExporterWindow.cs

+7-4
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,14 @@ private void OnGUI()
337337
// Texture
338338
GUILayout.Label("Texture", EditorStyles.boldLabel);
339339
textureForceReExport = EditorGUILayout.Toggle("Force ReExport", textureForceReExport);
340-
//exportGifs = EditorGUILayout.Toggle("Export GIFs", exportGifs);
341-
defaultTexFormat = (ExportTextureFormat)EditorGUILayout.EnumPopup("Unsupported Textures Format", defaultTexFormat);
342-
if (JanusUtil.SupportsQuality(defaultTexFormat))
340+
if (textureForceReExport)
343341
{
344-
defaultQuality = EditorGUILayout.IntSlider("Textures Quality", defaultQuality, 0, 100);
342+
//exportGifs = EditorGUILayout.Toggle("Export GIFs", exportGifs);
343+
defaultTexFormat = (ExportTextureFormat)EditorGUILayout.EnumPopup("Unsupported Textures Format", defaultTexFormat);
344+
if (JanusUtil.SupportsQuality(defaultTexFormat))
345+
{
346+
defaultQuality = EditorGUILayout.IntSlider("Textures Quality", defaultQuality, 0, 100);
347+
}
345348
}
346349

347350
// Scene

Diff for: unity/Project/JanusExporter/Assets/JanusExporter/JanusGlobals.cs

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
#if UNITY_EDITOR
2+
3+
using System;
24
using System.Collections.Generic;
35
using System.Linq;
46
using System.Text;
@@ -16,7 +18,7 @@ public static class JanusGlobals
1618
/// </summary>
1719
private static List<IJanusObject> objects = new List<IJanusObject>();
1820

19-
public const decimal Version = 2.12M;
21+
public const decimal Version = 2.13M;
2022

2123
/// <summary>
2224
/// Decimal cases used by default when exporting position/scale/rotation values
@@ -95,4 +97,5 @@ public static void UpdateScale(float scale)
9597
}
9698
}
9799
}
98-
}
100+
}
101+
#endif

Diff for: unity/Project/JanusExporter/Assets/JanusExporter/JanusResources.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
#if UNITY_EDITOR
2+
using System;
23
using System.Collections.Generic;
34
using System.Linq;
45
using System.Text;
@@ -147,4 +148,5 @@ public static Mesh CylinderBaseMesh
147148
}
148149
}
149150
}
150-
}
151+
}
152+
#endif

0 commit comments

Comments
 (0)