Parcourir la source

Set lower limit for object scale to 0x

Dealing with objects at a much smaller scale is fairly difficult. Some
other aspects of MPS would need to be tweaked to accomodate for this
change.

For now, the lower limit is set to 0x as per issue #44.
habeebweeb il y a 3 ans
Parent
commit
f529b5f794
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/MeidoPhotoStudio.Plugin/DragPoint/DragPointGeneral.cs

+ 1 - 1
src/MeidoPhotoStudio.Plugin/DragPoint/DragPointGeneral.cs

@@ -197,7 +197,7 @@ namespace MeidoPhotoStudio.Plugin
             {
                 scaling = true;
                 float scale = currentScale + (mouseDelta.y / 200f * ScaleFactor);
-                if (scale < 0.1f) scale = 0.1f;
+                if (scale < 0f) scale = 0f;
                 MyObject.localScale = new Vector3(scale, scale, scale);
                 OnScale();
             }