diff options
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_properties.cpp | 4 | ||||
-rw-r--r-- | editor/import/resource_importer_scene.cpp | 14 |
2 files changed, 3 insertions, 15 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 2c4e403a81..523e65babe 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -68,9 +68,9 @@ void EditorPropertyText::_text_changed(const String &p_string) { } if (string_name) { - emit_changed(get_edited_property(), StringName(p_string), "", true); + emit_changed(get_edited_property(), StringName(p_string), "", false); } else { - emit_changed(get_edited_property(), p_string, "", true); + emit_changed(get_edited_property(), p_string, "", false); } } diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp index d9c8bd9eb3..b591627660 100644 --- a/editor/import/resource_importer_scene.cpp +++ b/editor/import/resource_importer_scene.cpp @@ -236,18 +236,6 @@ void EditorSceneImporterMesh::generate_lods() { } uint32_t vertex_count = vertices.size(); const Vector3 *vertices_ptr = vertices.ptr(); - AABB aabb; - { - for (uint32_t j = 0; j < vertex_count; j++) { - if (j == 0) { - aabb.position = vertices_ptr[j]; - } else { - aabb.expand_to(vertices_ptr[j]); - } - } - } - - float longest_axis_size = aabb.get_longest_axis_size(); int min_indices = 10; int index_target = indices.size() / 2; @@ -263,7 +251,7 @@ void EditorSceneImporterMesh::generate_lods() { } new_indices.resize(new_len); Surface::LOD lod; - lod.distance = error * longest_axis_size; + lod.distance = error; lod.indices = new_indices; surfaces.write[i].lods.push_back(lod); index_target /= 2; |