You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Add EditorStringNames singleton
This commit is contained in:
@@ -45,8 +45,8 @@
|
||||
void Polygon3DEditor::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_READY: {
|
||||
button_create->set_icon(get_theme_icon(SNAME("Edit"), SNAME("EditorIcons")));
|
||||
button_edit->set_icon(get_theme_icon(SNAME("MovePoint"), SNAME("EditorIcons")));
|
||||
button_create->set_icon(get_editor_theme_icon(SNAME("Edit")));
|
||||
button_edit->set_icon(get_editor_theme_icon(SNAME("MovePoint")));
|
||||
button_edit->set_pressed(true);
|
||||
get_tree()->connect("node_removed", callable_mp(this, &Polygon3DEditor::_node_removed));
|
||||
|
||||
@@ -569,7 +569,7 @@ Polygon3DEditor::Polygon3DEditor() {
|
||||
handle_material->set_transparency(StandardMaterial3D::TRANSPARENCY_ALPHA);
|
||||
handle_material->set_flag(StandardMaterial3D::FLAG_ALBEDO_FROM_VERTEX_COLOR, true);
|
||||
handle_material->set_flag(StandardMaterial3D::FLAG_SRGB_VERTEX_COLOR, true);
|
||||
Ref<Texture2D> handle = EditorNode::get_singleton()->get_gui_base()->get_theme_icon(SNAME("Editor3DHandle"), SNAME("EditorIcons"));
|
||||
Ref<Texture2D> handle = EditorNode::get_singleton()->get_gui_base()->get_editor_theme_icon(SNAME("Editor3DHandle"));
|
||||
handle_material->set_point_size(handle->get_width());
|
||||
handle_material->set_texture(StandardMaterial3D::TEXTURE_ALBEDO, handle);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user