Skip to content

Commit d86c3ba

Browse files
committed
remove embed textures option
1 parent f75d07a commit d86c3ba

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public override void OnInspectorGUI() {
2828
}
2929

3030
exportSettings.weldVertices = EditorGUILayout.Toggle ("Weld Vertices:", exportSettings.weldVertices);
31-
exportSettings.embedTextures = EditorGUILayout.Toggle ("Embed Textures:", exportSettings.embedTextures);
31+
3232
exportSettings.mayaCompatibleNames = EditorGUILayout.Toggle (
3333
new GUIContent ("Convert to Maya Compatible Naming:",
3434
"In Maya some symbols such as spaces and accents get replaced when importing an FBX " +
@@ -128,7 +128,6 @@ public class ExportSettings : ScriptableSingleton<ExportSettings>
128128

129129
// Note: default values are set in LoadDefaults().
130130
public bool weldVertices;
131-
public bool embedTextures;
132131
public bool mayaCompatibleNames;
133132
public bool centerObjects;
134133

@@ -151,7 +150,6 @@ public class ExportSettings : ScriptableSingleton<ExportSettings>
151150
protected override void LoadDefaults()
152151
{
153152
weldVertices = true;
154-
embedTextures = false;
155153
mayaCompatibleNames = true;
156154
centerObjects = true;
157155
convertToModelSavePath = kDefaultSavePath;

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -925,18 +925,12 @@ public int ExportAll (IEnumerable<UnityEngine.Object> unityExportSet)
925925
// Configure fbx IO settings.
926926
fbxManager.SetIOSettings (FbxIOSettings.Create (fbxManager, Globals.IOSROOT));
927927

928-
// Export texture as embedded
929-
if(EditorTools.ExportSettings.instance.embedTextures){
930-
fbxManager.GetIOSettings ().SetBoolProp (Globals.EXP_FBX_EMBEDDED, true);
931-
}
932-
933928
// Create the exporter
934929
var fbxExporter = FbxExporter.Create (fbxManager, "Exporter");
935930

936931
// Initialize the exporter.
937932
// 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)");
940934

941935
status = fbxExporter.Initialize (m_tempFilePath, fileFormat, fbxManager.GetIOSettings ());
942936
// Check that initialization of the fbxExporter was successful

0 commit comments

Comments
 (0)