File tree Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ platforms:
14
14
image : package-ci/mac:stable
15
15
flavor : b1.medium
16
16
coverage :
17
- minPercent : 57.6
17
+ minPercent : 57.5
18
18
---
19
19
pack :
20
20
name : Pack
Original file line number Diff line number Diff line change 1
1
# Changes in Fbx Exporter
2
2
3
+ ## [ 4.0.0-pre.4] - 2021-01-26
4
+ ### Fixed
5
+ - Fix ArgumentNullException on Linux when opening Export Options window.
6
+
3
7
## [ 4.0.0-pre.3] - 2021-01-13
4
8
### Changed
5
9
- Added missing release date information to changelog.
Original file line number Diff line number Diff line change @@ -276,6 +276,18 @@ public void OnPresetSelectionChanged()
276
276
protected bool SelectionContainsPrefabInstanceWithAddedObjects ( )
277
277
{
278
278
var exportSet = GetToExport ( ) ;
279
+ // FBX-60 (fogbug 1307749):
280
+ // On Linux OnGUI() sometimes gets called a few times before
281
+ // the export set is set and window.show() is called.
282
+ // This leads to this function being called from OnGUI() with a
283
+ // null or empty export set, and an ArgumentNullException when
284
+ // creating the stack.
285
+ // Check that the set exists and has values before creating the stack.
286
+ if ( exportSet == null || exportSet . Length <= 0 )
287
+ {
288
+ return false ;
289
+ }
290
+
279
291
Stack < Object > stack = new Stack < Object > ( exportSet ) ;
280
292
while ( stack . Count > 0 )
281
293
{
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " com.unity.formats.fbx" ,
3
3
"displayName" : " FBX Exporter" ,
4
- "version" : " 4.0.0-pre.3 " ,
4
+ "version" : " 4.0.0-pre.4 " ,
5
5
"dependencies" : {
6
6
"com.unity.timeline" : " 1.0.0" ,
7
7
"com.autodesk.fbx" : " 4.0.0-pre.2"
You can’t perform that action at this time.
0 commit comments