Fixed List add/remove element buttons not working

This commit is contained in:
Simon Lübeß
2023-12-31 17:01:23 +01:00
parent 9e222daeb2
commit bd72a67d29
+2 -2
View File
@@ -597,8 +597,8 @@ internal class EntityEditor
// The buttons should always be visible -> save whether the node is open // The buttons should always be visible -> save whether the node is open
// If we have no instance, the user shouldn't be able to open the list // If we have no instance, the user shouldn't be able to open the list
bool listOpen = ImGui.TreeNodeEx(fieldName, bool listOpen = ImGui.TreeNodeEx(fieldName, ImGuiTreeNodeFlags.AllowOverlap | ImGuiTreeNodeFlags.SpanFullWidth |
myList == null ? ImGuiTreeNodeFlags.Leaf | ImGuiTreeNodeFlags.NoTreePushOnOpen : ImGuiTreeNodeFlags.Framed); (myList == null ? ImGuiTreeNodeFlags.Leaf | ImGuiTreeNodeFlags.NoTreePushOnOpen : ImGuiTreeNodeFlags.Framed));
if (myList == null) if (myList == null)
listOpen = false; listOpen = false;