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 " +
@@ -128,7 +128,6 @@ public class ExportSettings : ScriptableSingleton<ExportSettings>
128
128
129
129
// Note: default values are set in LoadDefaults().
130
130
public bool weldVertices ;
131
- public bool embedTextures ;
132
131
public bool mayaCompatibleNames ;
133
132
public bool centerObjects ;
134
133
@@ -151,7 +150,6 @@ public class ExportSettings : ScriptableSingleton<ExportSettings>
151
150
protected override void LoadDefaults ( )
152
151
{
153
152
weldVertices = true ;
154
- embedTextures = false ;
155
153
mayaCompatibleNames = true ;
156
154
centerObjects = true ;
157
155
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