From 6df53e0401fd7c2f8e81cd7d8189584706d3d7d8 Mon Sep 17 00:00:00 2001 From: Daniel Rakos Date: Thu, 31 Jan 2019 18:04:36 +0100 Subject: MeshLibrary export improvements - From now materials assigned to the MeshInstance (not the Mesh) get exported into the MeshLibrary when such materials exist. This enables workflows where the MeshLibrary is exported from an imported scene (e.g. GLTF) where the materials assigned to the Mesh (not the MeshInstance) get overwritten on re-import, thus can't use editor set materials in the exported MeshLibrary unless they are assigned to the MeshInstance whose materials get saved with the inherited scene thus persist across re-imports. - When appending to an existing MeshLibrary only generate previews for newly added or modified meshes. - During preview generation transform camera and lights instead of the mesh and use the source MeshInstance's transform for the mesh to avoid weird previews being generated for meshes with a position dependent material (e.g. when using triplanar mapping). - Adjust the camera angle and light directions used in mesh preview generation for better results. --- doc/classes/ArrayMesh.xml | 11 ----------- doc/classes/Mesh.xml | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'doc') diff --git a/doc/classes/ArrayMesh.xml b/doc/classes/ArrayMesh.xml index bcb9b4f6da..42457b2da6 100644 --- a/doc/classes/ArrayMesh.xml +++ b/doc/classes/ArrayMesh.xml @@ -164,17 +164,6 @@ Remove a surface at position surf_idx, shifting greater surfaces one surf_idx slot down. - - - - - - - - - Set a [Material] for a given surface. Surface will be rendered using this material. - - diff --git a/doc/classes/Mesh.xml b/doc/classes/Mesh.xml index 4852d4701d..d2a0849cc5 100644 --- a/doc/classes/Mesh.xml +++ b/doc/classes/Mesh.xml @@ -82,6 +82,17 @@ Return a [Material] in a given surface. Surface is rendered using this material. + + + + + + + + + Set a [Material] for a given surface. Surface will be rendered using this material. + + -- cgit v1.2.3