Skip to content

Commit

Permalink
I think I fixed a camera bug?
Browse files Browse the repository at this point in the history
  • Loading branch information
saint11 committed May 8, 2024
1 parent 572005c commit f0a7010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Murder.Editor/CustomEditors/AssetEditor.cs
Expand Up @@ -130,7 +130,7 @@ public override void OpenEditor(ImGuiRenderer imGuiRenderer, RenderContext rende
if (Architect.EditorSettings.CameraPositions.TryGetValue(targetGuid, out PersistStageInfo info))
{
renderContext.Camera.Position = info.Position;
renderContext.RefreshWindow(Architect.GraphicsDevice, info.Size, info.Size / 2, new ViewportResizeStyle(ViewportResizeMode.None));
renderContext.RefreshWindow(Architect.GraphicsDevice, info.Size, info.Size, new ViewportResizeStyle(ViewportResizeMode.None));
}
else if (target is not PrefabAsset)
{
Expand Down

0 comments on commit f0a7010

Please sign in to comment.