diff options
author | rtk0c <[email protected]> | 2022-02-19 13:30:03 -0800 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-02-19 13:30:03 -0800 |
commit | 9dcdcf68f6a60741cbdd287e7eda23b4a21a080e (patch) | |
tree | f5ff4c569607e1f63de9dd87bb7442e021b1f620 /3rdparty/imgui-node-editor/imgui_bezier_math.inl | |
parent | 2599909052ef552efd5622bf73b60913e815b498 (diff) |
Fix build errors and update all dependencies to latest version
- Fixed doctest executable not compiling
- Fixed class accessibility error in Workflow_Main.cpp
- Fixed selection of OpenGL loader in imgui OpenGL 2 & 3 backends
- All loading is handled in our code now, the imgui_*_backend.cpp files are instructed to do nothing
Diffstat (limited to '3rdparty/imgui-node-editor/imgui_bezier_math.inl')
-rw-r--r-- | 3rdparty/imgui-node-editor/imgui_bezier_math.inl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/3rdparty/imgui-node-editor/imgui_bezier_math.inl b/3rdparty/imgui-node-editor/imgui_bezier_math.inl index c2c7c43..3020bdb 100644 --- a/3rdparty/imgui-node-editor/imgui_bezier_math.inl +++ b/3rdparty/imgui-node-editor/imgui_bezier_math.inl @@ -1,4 +1,6 @@ //------------------------------------------------------------------------------ +// VERSION 0.1 +// // LICENSE // This software is dual-licensed to the public domain and under the following // license: you are granted a perpetual, irrevocable license to copy, modify, @@ -249,6 +251,9 @@ inline ImRect ImCubicBezierBoundingRect(const ImVec2& p0, const ImVec2& p1, cons for (int i = 0; i < 2; ++i) { + if (IM_VEC2_INDEX(a, i) == 0.0f) + continue; + if (IM_VEC2_INDEX(delta_squared, i) >= 0) { auto delta = ImSqrt(IM_VEC2_INDEX(delta_squared, i)); |