mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix TileSet editor crash on terrain pick in paint mode
This commit is contained in:
parent
06faefc9f4
commit
fb5a299a60
3 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue