Skip to content

Commit bbbd093

Browse files
authored
Merge pull request #123 from Unity-Technologies/UNI-24628-remove-embed-tex-option
UNI-24628 remove embed textures option
2 parents 442353c + d86c3ba commit bbbd093

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 " +
@@ -122,7 +122,6 @@ public class ExportSettings : ScriptableSingleton<ExportSettings>
122122

123123
// Note: default values are set in LoadDefaults().
124124
public bool weldVertices;
125-
public bool embedTextures;
126125
public bool mayaCompatibleNames;
127126
public bool centerObjects;
128127

@@ -145,7 +144,6 @@ public class ExportSettings : ScriptableSingleton<ExportSettings>
145144
protected override void LoadDefaults()
146145
{
147146
weldVertices = true;
148-
embedTextures = false;
149147
mayaCompatibleNames = true;
150148
centerObjects = true;
151149
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)