Skip to content

Commit

Permalink
Fix setting ScaleFactorMin/Max
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Nov 16, 2018
1 parent 837882a commit bfdb2b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/3d/castlecameras.pas
Expand Up @@ -2514,7 +2514,7 @@ procedure TExamineCamera.SetScaleFactorMin(const Value: Single);
FScaleFactorMin := Value;
{ Correct ScaleFactor now.
Using a property, so it causes ScheduleVisibleChange if changed. }
ScaleFactor := Clamped(Value, FScaleFactorMin, FScaleFactorMax);
ScaleFactor := Clamped(ScaleFactor, FScaleFactorMin, FScaleFactorMax);
end;
end;

Expand All @@ -2525,7 +2525,7 @@ procedure TExamineCamera.SetScaleFactorMax(const Value: Single);
FScaleFactorMax := Value;
{ Correct ScaleFactor now.
Using a property, so it causes ScheduleVisibleChange if changed. }
ScaleFactor := Clamped(Value, FScaleFactorMin, FScaleFactorMax);
ScaleFactor := Clamped(ScaleFactor, FScaleFactorMin, FScaleFactorMax);
end;
end;

Expand Down

0 comments on commit bfdb2b6

Please sign in to comment.