From c606bd4febbd5bbb926baf0ff5ae5f50af6a1371 Mon Sep 17 00:00:00 2001 From: Babak Karimi Asl <31150843+BabakKarimiAsl@users.noreply.github.com> Date: Thu, 24 Aug 2017 20:29:47 +0430 Subject: [PATCH] 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 --- 3rdparty/ocornut-imgui/widgets/gizmo.inl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/3rdparty/ocornut-imgui/widgets/gizmo.inl b/3rdparty/ocornut-imgui/widgets/gizmo.inl index 53dbc1511..41347e06a 100644 --- a/3rdparty/ocornut-imgui/widgets/gizmo.inl +++ b/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;