File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,24 @@ protected override bool Export ()
105
105
return false ;
106
106
}
107
107
108
+ if ( SettingsObject . UseMayaCompatibleNames && SettingsObject . AllowSceneModification )
109
+ {
110
+ // give a warning dialog that indicates that names in the scene may change
111
+ int result = UnityEditor . EditorUtility . DisplayDialogComplex (
112
+ string . Format ( "{0} Warning" , ModelExporter . PACKAGE_UI_NAME ) ,
113
+ "Names of objects in the hierarchy may change with the Compatible Naming option turned on" ,
114
+ "OK" , "Convert Without Compatible Naming" , "Cancel" ) ;
115
+ if ( result == 1 )
116
+ {
117
+ // turn compatible naming off
118
+ SettingsObject . SetUseMayaCompatibleNames ( false ) ;
119
+ }
120
+ else if ( result == 2 )
121
+ {
122
+ return false ;
123
+ }
124
+ }
125
+
108
126
if ( ToExport . Length == 1 ) {
109
127
var go = ModelExporter . GetGameObject ( ToExport [ 0 ] ) ;
110
128
You can’t perform that action at this time.
0 commit comments