Skip to content

Commit

Permalink
Now EditorPropertyEnums can be setup multiple times.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Mar 12, 2024
1 parent 90ae8d4 commit 062ccd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/editor_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ void EditorPropertyEnum::update_property() {
}

void EditorPropertyEnum::setup(const Vector<String> &p_options) {
options->clear();
int64_t current_val = 0;
for (int i = 0; i < p_options.size(); i++) {
Vector<String> text_split = p_options[i].split(":");
Expand Down

0 comments on commit 062ccd4

Please sign in to comment.