-
Notifications
You must be signed in to change notification settings - Fork 6
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
imviz.autogui with None in list leads to runtime error #18
Comments
Apparently this is due to this binding: m.def("begin_popup_context_item", [&](std::string label) {
return ImGui::BeginPopupContextItem(
label.empty() ? 0 : label.c_str());
},
py::arg("label") = ""); And calling Changing the line in autogui.py to |
Thanks for reporting that! Yeah, definitely buggy behavior. It is not possible to get a context menu if we don't render an item before. I've added a check in the respective autogui function. The fix will be included in 0.2.5. |
Awesome, thank you for the timely fix! |
The following code leads to a runtime error:
The error output is:
The text was updated successfully, but these errors were encountered: