소스 검색

Set PixelsPerUnit default value to 100, make 2D Object has suitable size in Editor.

aster2013 11 년 전
부모
커밋
766ce1d4c1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Source/Engine/Urho2D/Drawable2D.cpp

+ 1 - 1
Source/Engine/Urho2D/Drawable2D.cpp

@@ -44,7 +44,7 @@ extern const char* blendModeNames[];
 
 Drawable2D::Drawable2D(Context* context) :
     Drawable(context, DRAWABLE_GEOMETRY),
-    pixelsPerUnit_(1.0f),
+    pixelsPerUnit_(100.0f),
     zValue_(0.0f),
     blendMode_(BLEND_ALPHA),
     vertexBuffer_(new VertexBuffer(context_)),