소스 검색

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 3 년 전
부모
커밋
f529b5f794
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();
             }