Skip to content

Commit a9baf82

Browse files
authored
Merge pull request #293 from Unity-Technologies/UNI-36661-1.3.0a1-preview-forum-release
Uni 36661 1.3.0a1 preview forum release
2 parents 0bb1d53 + 2770ac9 commit a9baf82

File tree

4 files changed

+36
-5
lines changed

4 files changed

+36
-5
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ public static HashSet<float> GetSampleTimes(AnimationCurve[] animCurves, double
14521452
var keyTimes = new HashSet<float>();
14531453
double fs = 1.0/sampleRate;
14541454

1455-
double currSample = double.MaxValue, firstTime = double.MaxValue, lastTime = double.MinValue;
1455+
double firstTime = double.MaxValue, lastTime = double.MinValue;
14561456

14571457
foreach (var ac in animCurves)
14581458
{
@@ -1462,9 +1462,10 @@ public static HashSet<float> GetSampleTimes(AnimationCurve[] animCurves, double
14621462
lastTime = System.Math.Max(lastTime, ac[ac.length-1].time);
14631463
}
14641464

1465-
for (currSample = firstTime; currSample < lastTime; currSample += fs)
1466-
{
1467-
keyTimes.Add((float)currSample);
1465+
int firstframe = (int)(firstTime * sampleRate);
1466+
int lastframe = (int)(lastTime * sampleRate);
1467+
for (int i = firstframe; i <= lastframe; i++) {
1468+
keyTimes.Add ((float)(i * fs));
14681469
}
14691470

14701471
return keyTimes;

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ endif()
2323
message(STATUS "Building for ${CMAKE_BUILD_TYPE}")
2424

2525
if (NOT DEFINED PACKAGE_VERSION OR "${PACKAGE_VERSION}" STREQUAL "")
26-
set(PACKAGE_VERSION "sprint43")
26+
set(PACKAGE_VERSION "1.3.0a1")
2727
endif()
2828
message(STATUS "Using Package Version: ${PACKAGE_VERSION}")
2929

@@ -259,3 +259,4 @@ endif()
259259
install(DIRECTORY ${CMAKE_SOURCE_DIR}/meta/FbxExporters
260260
DESTINATION .)
261261
install(FILES "${CMAKE_SOURCE_DIR}/meta/FbxExporters.meta" DESTINATION .)
262+
install(FILES "${CMAKE_SOURCE_DIR}/RELEASE_NOTES_EXTERNAL.md" DESTINATION FbxExporters RENAME "RELEASE_NOTES.txt")

RELEASE_NOTES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
RELEASE NOTES
22

3+
**Version**: 1.3.0a1
4+
5+
FIXES
6+
* FbxExporter: fixed so last keyframe is exported
7+
* fix Universal Windows Platform build errors
8+
9+
Error caused by UnityFbxSdk.dll being set as compatible with any platform instead of editor only.
10+
311
**Version**: sprint43
412

513
NEW FEATURES

RELEASE_NOTES_EXTERNAL.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
RELEASE NOTES
2+
3+
**Version**: 1.3.0a1
4+
5+
NEW FEATURES
6+
* FbxExporter: Added support for exporting Blendshapes
7+
* FbxExporter: Added support for exporting SkinnedMeshes with legacy and generic animation
8+
* FbxExporter: Added support for exporting Lights with animatable properties (Intensity, Spot Angle, Color)
9+
* FbxExporter: Added support for exporting Cameras with animatable properties (Field of View)
10+
* FbxExporter: added ability to export animation on transforms
11+
12+
FIXES
13+
* fix Universal Windows Platform build errors
14+
15+
Error caused by UnityFbxSdk.dll being set as compatible with any platform instead of editor only.
16+
17+
**Version**: 1.2.0b1
18+
19+
**Version**: 1.1.0b1
20+
21+
**Version**: 1.0.0b1

0 commit comments

Comments
 (0)