Преглед на файлове

Merge pull request #78418 from brno32/apply-texture-filter-2d-polygon-editor

Apply selected texture filter when editing UV
Rémi Verschelde преди 2 години
родител
ревизия
cdfaf8a10f
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      editor/plugins/polygon_2d_editor_plugin.cpp

+ 2 - 0
editor/plugins/polygon_2d_editor_plugin.cpp

@@ -298,6 +298,8 @@ void Polygon2DEditor::_menu_option(int p_option) {
 				return;
 			}
 
+			uv_edit_draw->set_texture_filter(node->get_texture_filter_in_tree());
+
 			Vector<Vector2> points = node->get_polygon();
 			Vector<Vector2> uvs = node->get_uv();
 			if (uvs.size() != points.size()) {