Fix TileSet editor crash on terrain pick in paint mode

This commit is contained in:
kleonc 2025-11-03 20:31:29 +01:00
parent 06faefc9f4
commit fb5a299a60
3 changed files with 6 additions and 1 deletions

View file

@ -870,6 +870,10 @@ void EditorPropertyEnum::set_option_button_clip(bool p_enable) {
options->set_clip_text(p_enable);
}
OptionButton *EditorPropertyEnum::get_option_button() {
return options;
}
EditorPropertyEnum::EditorPropertyEnum() {
options = memnew(OptionButton);
options->set_clip_text(true);

View file

@ -272,6 +272,7 @@ public:
void setup(const Vector<String> &p_options);
virtual void update_property() override;
void set_option_button_clip(bool p_enable);
OptionButton *get_option_button(); // Hack to allow setting icons.
EditorPropertyEnum();
};