Skip to content

Commit 860a7d2

Browse files
fix: import form render
1 parent d153021 commit 860a7d2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

FreeFrame/Window.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ protected override void OnRenderFrame(FrameEventArgs e)
200200
}
201201
}
202202

203-
if (KeyboardState.IsKeyDown(Keys.LeftControl) && KeyboardState.IsKeyDown(Keys.D) && (KeyboardState.WasKeyDown(Keys.LeftControl) == false || KeyboardState.WasKeyDown(Keys.D) == false))
203+
if (KeyboardState.IsKeyDown(Keys.LeftControl) && KeyboardState.IsKeyDown(Keys.D) && (KeyboardState.WasKeyDown(Keys.LeftControl) == false || KeyboardState.WasKeyDown(Keys.D) == false))
204204
{
205205
if (_selectedShape != null)
206206
{
@@ -1232,6 +1232,11 @@ public void ImportFreeFrameWorkspace(string path)
12321232
Shapes = fromJson.Shapes ?? new();
12331233
_timeline.SortedTimeline = fromJson.SortedTimeline ?? new();
12341234
_ioBgColor = fromJson.BgColor;
1235+
1236+
// Implement new objects and render
1237+
foreach (Shape shape in Shapes)
1238+
shape.ImplementObject();
1239+
_timeline.RenderInterpolation(this);
12351240
}
12361241
public void SaveCurrentScreenToGIF(string path)
12371242
{

0 commit comments

Comments
 (0)