Explorar o código

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

aster2013 %!s(int64=11) %!d(string=hai) anos
pai
achega
766ce1d4c1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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_)),