diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-09-13 13:14:07 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-09-15 14:51:01 +0200 |
commit | 8ecc0c4f47f78874d94ad701cea4ea0173bddbb2 (patch) | |
tree | 6230a9b3228bf84812d054f16e728bb9b4a31f34 /editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp | |
parent | 6e11fcb92cda87322ab91f5a53e8a230ff1b994f (diff) | |
download | redot-engine-8ecc0c4f47f78874d94ad701cea4ea0173bddbb2.tar.gz |
Fix accessing editor theme items throughout the UI
This also exposes `EditorInterface::get_editor_theme`.
Diffstat (limited to 'editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp b/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp index af861b04b5..e86ce440ee 100644 --- a/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp +++ b/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp @@ -32,6 +32,7 @@ #include "editor/editor_interface.h" #include "editor/editor_node.h" +#include "editor/editor_string_names.h" #include "editor/gui/editor_file_dialog.h" void GPUParticlesCollisionSDF3DEditorPlugin::_bake() { @@ -183,7 +184,7 @@ GPUParticlesCollisionSDF3DEditorPlugin::GPUParticlesCollisionSDF3DEditorPlugin() bake_hb->hide(); bake = memnew(Button); bake->set_flat(true); - bake->set_icon(EditorNode::get_singleton()->get_gui_base()->get_editor_theme_icon(SNAME("Bake"))); + bake->set_icon(EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("Bake"), EditorStringName(EditorIcons))); bake->set_text(TTR("Bake SDF")); bake->connect("pressed", callable_mp(this, &GPUParticlesCollisionSDF3DEditorPlugin::_bake)); bake_hb->add_child(bake); |