mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #81516 from YuriSizov/editor-theme-access-the-success
Fix accessing editor theme items throughout the UI
This commit is contained in:
commit
df6cd37a69
58 changed files with 357 additions and 206 deletions
|
@ -936,7 +936,7 @@ void fragment() {
|
|||
}
|
||||
)");
|
||||
handle_material->set_shader(handle_shader);
|
||||
Ref<Texture2D> handle = EditorNode::get_singleton()->get_gui_base()->get_editor_theme_icon(SNAME("EditorBoneHandle"));
|
||||
Ref<Texture2D> handle = EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("EditorBoneHandle"), EditorStringName(EditorIcons));
|
||||
handle_material->set_shader_parameter("point_size", handle->get_width());
|
||||
handle_material->set_shader_parameter("texture_albedo", handle);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue