diff --git a/Assets/Prefabs/Panels/Widgets/FrameNotchesWidget.prefab b/Assets/Prefabs/Panels/Widgets/FrameNotchesWidget.prefab index 99ead71bb..292b92c91 100644 --- a/Assets/Prefabs/Panels/Widgets/FrameNotchesWidget.prefab +++ b/Assets/Prefabs/Panels/Widgets/FrameNotchesWidget.prefab @@ -100,7 +100,7 @@ PrefabInstance: - target: {fileID: 4141830414106372800, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} propertyPath: m_text - value: 1 + value: 2 objectReference: {fileID: 0} - target: {fileID: 4518675632882533363, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} @@ -184,7 +184,7 @@ PrefabInstance: - target: {fileID: 4141830414106372800, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} propertyPath: m_text - value: 3 + value: 4 objectReference: {fileID: 0} - target: {fileID: 4518675632882533363, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} @@ -268,7 +268,7 @@ PrefabInstance: - target: {fileID: 4141830414106372800, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} propertyPath: m_text - value: 7 + value: 8 objectReference: {fileID: 0} - target: {fileID: 4518675632882533363, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} @@ -352,7 +352,7 @@ PrefabInstance: - target: {fileID: 4141830414106372800, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} propertyPath: m_text - value: 5 + value: 6 objectReference: {fileID: 0} - target: {fileID: 4518675632882533363, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} @@ -436,7 +436,7 @@ PrefabInstance: - target: {fileID: 4141830414106372800, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} propertyPath: m_text - value: 6 + value: 7 objectReference: {fileID: 0} - target: {fileID: 4518675632882533363, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} @@ -520,7 +520,7 @@ PrefabInstance: - target: {fileID: 4141830414106372800, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} propertyPath: m_text - value: 4 + value: 5 objectReference: {fileID: 0} - target: {fileID: 4518675632882533363, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} @@ -604,7 +604,7 @@ PrefabInstance: - target: {fileID: 4141830414106372800, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} propertyPath: m_text - value: 2 + value: 3 objectReference: {fileID: 0} - target: {fileID: 4518675632882533363, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} @@ -688,7 +688,7 @@ PrefabInstance: - target: {fileID: 4141830414106372800, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} propertyPath: m_text - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4518675632882533363, guid: 7a7d5ae4b979c7b4c86b109067ea20c9, type: 3} diff --git a/Assets/Scripts/Animation/AnimationUI_Manager.cs b/Assets/Scripts/Animation/AnimationUI_Manager.cs index 6b3b297ee..2f2ff5e5f 100644 --- a/Assets/Scripts/Animation/AnimationUI_Manager.cs +++ b/Assets/Scripts/Animation/AnimationUI_Manager.cs @@ -406,7 +406,7 @@ private void UpdateNodes() GameObject newFrame = Instantiate(timelineNotchPrefab, frameNotchesWidget.transform, false); // HARD CODED. MUST GET Vector and Scale info from FrameButton1 newFrame.transform.localPosition = new Vector3(posModifier * 0.1971429f, 0, 0.0087f); // 1.9... is the spacing between framebuttons 0 and 1 - newFrame.transform.FindChild("Num").GetComponent().text = "" + posModifier; + newFrame.transform.FindChild("Num").GetComponent().text = "" + (posModifier + 1); posModifier = posModifier + 1; } @@ -638,7 +638,8 @@ public void UpdateTimelineNob() public void updateFrameInfo() { - textRef.GetComponent().text = (m_FrameOn.ToString("0.00")) + ":" + GetTimelineLength(); + float adjustedFrameOn = Math.Min(m_FrameOn + 1, GetTimelineLength()); + textRef.GetComponent().text = (adjustedFrameOn.ToString("0")) + " / " + GetTimelineLength(); } public void UpdateUI(bool timelineInput = false) @@ -706,10 +707,9 @@ public DeletedFrame RemoveKeyFrame(int trackNum = -1, int frameNum = -1) deletedFrame.Location = (index.Item1, index.Item2); App.Scene.HideCanvas(deletedFrame.Frame.Canvas); - CanvasScript replacingCanvas = App.Scene.AddCanvas(); for (int l = index.Item2; l < nextIndex.Item2; l++) { - Frame removingFrame = NewFrame(replacingCanvas); + Frame removingFrame = NewFrame(App.Scene.AddCanvas()); Timeline[index.Item1].Frames[l] = removingFrame; } @@ -989,7 +989,7 @@ private CanvasScript ReplicateStrokesToNewCanvas(List oldStrokes) for (int i = 0; i < oldStrokes.Count; i++) { - if (oldStrokes.Count == newStrokes.Count && oldStrokes[i].m_Type == Stroke.Type.NotCreated) + if (oldStrokes.Count == newStrokes.Count && (oldStrokes[i].m_Type == Stroke.Type.NotCreated || !oldStrokes[i].IsGeometryEnabled)) { // using SketchMemory of oldStrokes to mark Uncreated strokes on newStrokes. Otherwise, Uncreated strokes will be re-made. newStrokes[i].Uncreate();