Skip to content

Commit ae016b2

Browse files
committed
use 32bit index by default on Unity 2017 or newer
1 parent 683db1c commit ae016b2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

AlembicImporter/Assets/UTJ/Alembic/Scripts/Importer/AlembicSettings.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,12 @@ public class AlembicStreamSettings
1515
[SerializeField] public bool treatVertexExtraDataAsStatics = false;
1616
[SerializeField] public bool cacheSamples = false;
1717
[SerializeField] public bool use32BitsIndexBuffer = false;
18+
19+
public AlembicStreamSettings()
20+
{
21+
#if UNITY_2017_3_OR_NEWER
22+
use32BitsIndexBuffer = true;
23+
#endif
24+
}
1825
}
1926
}

0 commit comments

Comments
 (0)