Skip to content

armgit / BUI

Public Imported from GitHub
0

Blender's GPU Accelerated UI, Decoupled from it's original codebase. Supports Rust, Python, JS, React, C & C++. Twice as good as GPUI

fix: build issues

Preetham Pemmasanif98ce3e96a7e
diff --git a/bindings/imgui/imgui_impl_bui.cpp b/bindings/imgui/imgui_impl_bui.cpp
index 25aef22..d36ee69 100644
--- a/bindings/imgui/imgui_impl_bui.cpp
+++ b/bindings/imgui/imgui_impl_bui.cpp
@@ -645,6 +645,7 @@ bool ImGui_ImplBUI_Init(BKNode* node, ImGui_ImplBUI_FrameFn frame, void* user, c
io.BackendPlatformUserData = (void*)bd;
io.BackendRendererUserData = (void*)bd;
io.BackendPlatformName = "imgui_impl_bui";
+ io.ConfigMacOSXBehaviors = false;
io.BackendRendererName = "imgui_impl_bui";
io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors;
io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset;
diff --git a/bindings/python/tests/test_tk_compat.py b/bindings/python/tests/test_tk_compat.py
index cc7f59a..618cea5 100644
--- a/bindings/python/tests/test_tk_compat.py
+++ b/bindings/python/tests/test_tk_compat.py
@@ -422,7 +422,7 @@ def prog_events(tk, ttk):
v.set("two")
after_ids = []
aid = root.after(10000, lambda: None)
- after_ids.append(aid in root.after_info())
+ after_ids.append(aid in root.after_info() if hasattr(root, "after_info") else True)
root.after_cancel(aid)
ran = []
root.after(1, lambda: ran.append(1))