Skip to content

Commit c6ba2ce

Browse files
committed
code review fixes
1 parent f3bac02 commit c6ba2ce

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

com.unity.formats.fbx/Editor/FbxPropertyChannelPair.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ public PropertyChannelMap(Dictionary<string,string> propertyMap, Dictionary<stri
9292
{ "field of view", "FieldOfView" },
9393
{ "m_Weight", "Weight" },
9494
{ "m_FocalLength", "FocalLength" },
95-
{"m_LensShift.x", "FilmOffsetX" },
96-
{"m_LensShift.y", "FilmOffsetY" }
95+
{ "m_LensShift.x", "FilmOffsetX" },
96+
{ "m_LensShift.y", "FilmOffsetY" }
9797
};
9898

9999
/// <summary>

com.unity.formats.fbx/Editor/Sources/Recorders/FbxRecorder/FbxRecorder.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protected override void RecordFrame(RecordingSession ctx)
1616

1717
protected override void EndRecording(RecordingSession session)
1818
{
19-
var ars = (FbxRecorderSettings)session.settings;
19+
var settings = (FbxRecorderSettings)session.settings;
2020

2121
foreach (var input in m_Inputs)
2222
{
@@ -28,14 +28,13 @@ protected override void EndRecording(RecordingSession session)
2828

2929
var clip = new AnimationClip();
3030

31-
ars.FileNameGenerator.CreateDirectory(session);
31+
settings.FileNameGenerator.CreateDirectory(session);
3232

33-
var absolutePath = FileNameGenerator.SanitizePath(ars.FileNameGenerator.BuildAbsolutePath(session));
33+
var absolutePath = FileNameGenerator.SanitizePath(settings.FileNameGenerator.BuildAbsolutePath(session));
3434
var clipName = absolutePath.Replace(FileNameGenerator.SanitizePath(Application.dataPath), "Assets");
3535

36-
//AssetDatabase.CreateAsset(clip, clipName);
3736
#if UNITY_2018_3_OR_NEWER
38-
aInput.GameObjectRecorder.SaveToClip(clip, ars.FrameRate);
37+
aInput.GameObjectRecorder.SaveToClip(clip, settings.FrameRate);
3938
#else
4039
aInput.gameObjectRecorder.SaveToClip(clip);
4140
#endif
@@ -59,7 +58,7 @@ protected override void EndRecording(RecordingSession session)
5958
AnimationUtility.SetAnimationClips(animator, new AnimationClip[] { clip });
6059
var exportSettings = new ExportModelSettingsSerialize();
6160
var toInclude = ExportSettings.Include.ModelAndAnim;
62-
if (!ars.ExportGeometry)
61+
if (!settings.ExportGeometry)
6362
{
6463
toInclude = ExportSettings.Include.Anim;
6564
}

com.unity.formats.fbx/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"displayName": "FBX Exporter",
44
"version": "2.0.3-preview.3",
55
"dependencies": {
6+
"com.unity.recorder": "2.1.0-preview.1",
67
"com.unity.timeline": "1.0.0",
7-
"com.autodesk.fbx": "2.0.1-preview.1",
8-
"com.unity.recorder": "2.1.0-preview.1"
8+
"com.autodesk.fbx": "2.0.1-preview.1"
99
},
1010
"unity": "2018.3",
1111
"unityRelease": "4f1",

0 commit comments

Comments
 (0)