Minor Fixing Compile Error on vs2012 express (#1225)

* Minor Fixing Compile Error on vs2012 express 

Thanks For This Great Library . There Were One Build Error Using vs2012 express compiler that it can't initialize class members outside of constructor.  Minor Fix in  "struct Context" .
 .

* Update gizmo.inl
This commit is contained in:
Babak Karimi Asl 2017-08-24 20:29:47 +04:30 committed by Branimir Karadžić
parent 27b2dbd30a
commit c606bd4feb

View File

@ -495,6 +495,10 @@ namespace ImGuizmo
{
Context() : mbUsing(false), mbEnable(true), mbUsingBounds(false)
{
mX=0.f;
mY=0.f;
mWidth=0.f;
mHeight=0.f;
}
ImDrawList* mDrawList;
@ -561,10 +565,13 @@ namespace ImGuizmo
//
int mCurrentOperation;
float mX,mY,mWidth,mHeight;
/*
float mX = 0.f;
float mY = 0.f;
float mWidth = 0.f;
float mHeight = 0.f;
*/
};
static Context gContext;