File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public override void OnInspectorGUI() {
28
28
}
29
29
30
30
exportSettings . weldVertices = EditorGUILayout . Toggle ( "Weld Vertices:" , exportSettings . weldVertices ) ;
31
- exportSettings . embedTextures = EditorGUILayout . Toggle ( "Embed Textures:" , exportSettings . embedTextures ) ;
31
+
32
32
exportSettings . mayaCompatibleNames = EditorGUILayout . Toggle (
33
33
new GUIContent ( "Convert to Maya Compatible Naming:" ,
34
34
"In Maya some symbols such as spaces and accents get replaced when importing an FBX " +
@@ -122,7 +122,6 @@ public class ExportSettings : ScriptableSingleton<ExportSettings>
122
122
123
123
// Note: default values are set in LoadDefaults().
124
124
public bool weldVertices ;
125
- public bool embedTextures ;
126
125
public bool mayaCompatibleNames ;
127
126
public bool centerObjects ;
128
127
@@ -145,7 +144,6 @@ public class ExportSettings : ScriptableSingleton<ExportSettings>
145
144
protected override void LoadDefaults ( )
146
145
{
147
146
weldVertices = true ;
148
- embedTextures = false ;
149
147
mayaCompatibleNames = true ;
150
148
centerObjects = true ;
151
149
convertToModelSavePath = kDefaultSavePath ;
Original file line number Diff line number Diff line change @@ -925,18 +925,12 @@ public int ExportAll (IEnumerable<UnityEngine.Object> unityExportSet)
925
925
// Configure fbx IO settings.
926
926
fbxManager . SetIOSettings ( FbxIOSettings . Create ( fbxManager , Globals . IOSROOT ) ) ;
927
927
928
- // Export texture as embedded
929
- if ( EditorTools . ExportSettings . instance . embedTextures ) {
930
- fbxManager . GetIOSettings ( ) . SetBoolProp ( Globals . EXP_FBX_EMBEDDED , true ) ;
931
- }
932
-
933
928
// Create the exporter
934
929
var fbxExporter = FbxExporter . Create ( fbxManager , "Exporter" ) ;
935
930
936
931
// Initialize the exporter.
937
932
// fileFormat must be binary if we are embedding textures
938
- int fileFormat = EditorTools . ExportSettings . instance . embedTextures ? - 1 :
939
- fbxManager . GetIOPluginRegistry ( ) . FindWriterIDByDescription ( "FBX ascii (*.fbx)" ) ;
933
+ int fileFormat = fbxManager . GetIOPluginRegistry ( ) . FindWriterIDByDescription ( "FBX ascii (*.fbx)" ) ;
940
934
941
935
status = fbxExporter . Initialize ( m_tempFilePath , fileFormat , fbxManager . GetIOSettings ( ) ) ;
942
936
// Check that initialization of the fbxExporter was successful
You can’t perform that action at this time.
0 commit comments