Skip to content

Commit 84d1d3a

Browse files
committed
code review fixes
1 parent 0b2f764 commit 84d1d3a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ public override void OnInspectorGUI() {
5656
exportSettings.autoUpdaterEnabled
5757
);
5858

59-
exportSettings.exportMeshColliders = EditorGUILayout.Toggle(
60-
new GUIContent("Export Mesh Colliders:",
59+
exportSettings.exportMeshNoRenderer = EditorGUILayout.Toggle(
60+
new GUIContent("Export Meshes with no Renderers:",
6161
"If unchecked, meshes that don't have renderers won't be exported."),
62-
exportSettings.exportMeshColliders
62+
exportSettings.exportMeshNoRenderer
6363
);
6464

6565
GUILayout.BeginHorizontal();
@@ -448,7 +448,7 @@ public static string[] DCCVendorLocations
448448
public bool HideSendToUnityMenu = true;
449449
public int ExportFormatSelection;
450450
public bool BakeAnimation = true;
451-
public bool exportMeshColliders = false;
451+
public bool exportMeshNoRenderer = false;
452452

453453
public string IntegrationSavePath;
454454

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3495,7 +3495,7 @@ bool ExportMesh (GameObject gameObject, FbxNode fbxNode)
34953495

34963496
// if user doesn't want to export mesh colliders, and this gameobject doesn't have a renderer
34973497
// then don't export it.
3498-
if (!ExportSettings.instance.exportMeshColliders && !gameObject.GetComponent<Renderer>()) {
3498+
if (!ExportSettings.instance.exportMeshNoRenderer && !gameObject.GetComponent<Renderer>()) {
34993499
return false;
35003500
}
35013501

0 commit comments

Comments
 (0)