File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,23 @@ class Integrations
16
16
17
17
private const string FBX_EXPORT_SETTINGS_PATH = "Integrations/Autodesk/maya/scripts/unityFbxExportSettings.mel" ;
18
18
19
- public static string INTEGRATION_FOLDER_PATH = Application . dataPath ;
19
+ private static string m_integrationFolderPath = null ;
20
+ public static string INTEGRATION_FOLDER_PATH
21
+ {
22
+ get {
23
+ if ( string . IsNullOrEmpty ( m_integrationFolderPath ) ) {
24
+ m_integrationFolderPath = Application . dataPath ;
25
+ }
26
+ return m_integrationFolderPath ;
27
+ }
28
+ set {
29
+ if ( ! string . IsNullOrEmpty ( value ) && System . IO . Directory . Exists ( value ) ) {
30
+ m_integrationFolderPath = value ;
31
+ } else {
32
+ Debug . LogError ( string . Format ( "Failed to set integration folder path, invalid directory \" {0}\" " , value ) ) ;
33
+ }
34
+ }
35
+ }
20
36
21
37
public class MayaException : System . Exception {
22
38
public MayaException ( ) { }
You can’t perform that action at this time.
0 commit comments