Browse Source

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
Babak Karimi Asl 8 years ago
parent
commit
c606bd4feb
1 changed files with 7 additions and 0 deletions
  1. 7 0
      3rdparty/ocornut-imgui/widgets/gizmo.inl

+ 7 - 0
3rdparty/ocornut-imgui/widgets/gizmo.inl

@@ -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;