Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
Patch handles not being ceased
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazrius committed Aug 18, 2020
1 parent fca0aef commit f2e2cd3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FreelancerModStudio/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("d88a7221-eaf7-4b5b-a285-a71912942382")]
[assembly: AssemblyVersion("1.3.1.0")]
[assembly: AssemblyVersion("1.3.1.1")]
6 changes: 6 additions & 0 deletions FreelancerModStudio/SystemDesigner/Presenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ public Presenter(HelixViewport3D viewport, SystemEditorForm form)
this.SystemEditorForm = form;

this.Viewport = viewport;
this.Viewport.MouseUp += this.ViewportMouseUp;
this.Viewport.MouseDown += this.ViewportMouseDown;
this.Viewport.MouseMove += this.ViewportMouseMove;
this.Viewport.KeyDown += this.ViewportKeyDown;
Expand All @@ -212,6 +213,11 @@ public Presenter(HelixViewport3D viewport, SystemEditorForm form)
this.Lighting = new SystemLightsVisual3D();
}

private void ViewportMouseUp(object sender, MouseButtonEventArgs e)
{
this.StopManipulating(false);
}

public void LookAt(ContentBase content) => this.Viewport.LookAt(content.GetPositionPoint(), Animator.AnimationDuration.TimeSpan.TotalMilliseconds);

public void LookAt(Point3D point) => this.Viewport.LookAt(point, Animator.AnimationDuration.TimeSpan.TotalMilliseconds);
Expand Down
2 changes: 1 addition & 1 deletion Setup/setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "scripts\products\dotnetfx35sp1.iss"

#define MyAppSetupName 'Freelancer Mod Studio'
#define MyAppVersion '1.3.1.0'
#define MyAppVersion '1.3.1.1'

[Setup]
AppName={#MyAppSetupName}
Expand Down

0 comments on commit f2e2cd3

Please sign in to comment.