Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for v1.89.4 #208

Merged
merged 1 commit into from
May 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/blueprints-example/blueprints-example.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#define IMGUI_DEFINE_MATH_OPERATORS
#include <application.h>
#include "utilities/builders.h"
#include "utilities/widgets.h"

#include <imgui_node_editor.h>

#define IMGUI_DEFINE_MATH_OPERATORS
#include <imgui_internal.h>

#include <string>
Expand Down
2 changes: 1 addition & 1 deletion examples/blueprints-example/utilities/builders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
// CREDITS
// Written by Michal Cichon
//------------------------------------------------------------------------------
# include "builders.h"
# define IMGUI_DEFINE_MATH_OPERATORS
# include "builders.h"
# include <imgui_internal.h>


Expand Down
2 changes: 1 addition & 1 deletion examples/blueprints-example/utilities/drawing.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# include "drawing.h"
# define IMGUI_DEFINE_MATH_OPERATORS
# include "drawing.h"
# include <imgui_internal.h>

void ax::Drawing::DrawIcon(ImDrawList* drawList, const ImVec2& a, const ImVec2& b, IconType type, bool filled, ImU32 color, ImU32 innerColor)
Expand Down
2 changes: 1 addition & 1 deletion examples/blueprints-example/utilities/widgets.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# include "widgets.h"
# define IMGUI_DEFINE_MATH_OPERATORS
# include "widgets.h"
# include <imgui_internal.h>

void ax::Widgets::Icon(const ImVec2& size, IconType type, bool filled, const ImVec4& color/* = ImVec4(1, 1, 1, 1)*/, const ImVec4& innerColor/* = ImVec4(0, 0, 0, 0)*/)
Expand Down
2 changes: 1 addition & 1 deletion examples/canvas-example/canvas-example.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# include <imgui.h>
# define IMGUI_DEFINE_MATH_OPERATORS
# include <imgui.h>
# include <imgui_internal.h>
# include <imgui_canvas.h>
# include <application.h>
Expand Down
2 changes: 1 addition & 1 deletion imgui_extra_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@


//------------------------------------------------------------------------------
# include <imgui.h>
# ifndef IMGUI_DEFINE_MATH_OPERATORS
# define IMGUI_DEFINE_MATH_OPERATORS
# endif
# include <imgui.h>
# include <imgui_internal.h>


Expand Down
5 changes: 4 additions & 1 deletion imgui_node_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2560,7 +2560,10 @@ ed::Control ed::EditorContext::BuildControl(bool allowOffscreen)
if (!allowOffscreen && !m_IsHovered)
return Control();

# if IMGUI_VERSION_NUM >= 17909
# if IMGUI_VERSION_NUM >= 18836
if (m_IsHoveredWithoutOverlapp)
ImGui::SetItemKeyOwner(ImGuiKey_MouseWheelY);
# elif IMGUI_VERSION_NUM >= 17909
if (m_IsHoveredWithoutOverlapp)
ImGui::SetItemUsingMouseWheel();
# endif
Expand Down
2 changes: 1 addition & 1 deletion imgui_node_editor_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@


//------------------------------------------------------------------------------
# define IMGUI_DEFINE_MATH_OPERATORS
# include "imgui_node_editor.h"


//------------------------------------------------------------------------------
# include <imgui.h>
# define IMGUI_DEFINE_MATH_OPERATORS
# include <imgui_internal.h>
# include "imgui_extra_math.h"
# include "imgui_bezier_math.h"
Expand Down