From 062ccd439f84816fe6c1a3c7fdc51d872237f693 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 12 Mar 2024 06:35:44 +0100 Subject: [PATCH] Now EditorPropertyEnums can be setup multiple times. --- editor/editor_properties.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 3f34bc055..396897b48 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -711,6 +711,7 @@ void EditorPropertyEnum::update_property() { } void EditorPropertyEnum::setup(const Vector &p_options) { + options->clear(); int64_t current_val = 0; for (int i = 0; i < p_options.size(); i++) { Vector text_split = p_options[i].split(":");