From 1dd1888b55fc3b3af8742ce7d5844feb6b6957b6 Mon Sep 17 00:00:00 2001 From: Thomas JOUANNOT Date: Thu, 22 Jun 2017 13:26:47 +0200 Subject: [PATCH] LodGenerator should accept a constructor by mesh --- .../tools/java/jme3tools/optimize/LodGenerator.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/jme3-core/src/tools/java/jme3tools/optimize/LodGenerator.java b/jme3-core/src/tools/java/jme3tools/optimize/LodGenerator.java index 56bc02bd1..5b2ee6fd8 100644 --- a/jme3-core/src/tools/java/jme3tools/optimize/LodGenerator.java +++ b/jme3-core/src/tools/java/jme3tools/optimize/LodGenerator.java @@ -254,6 +254,16 @@ public class LodGenerator { } }; + /** + * Construct a LodGenerator for the given mesh + * + * @param mesh the mesh to consider to generate de Lods. + */ + public LodGenerator(Mesh mesh) { + this.mesh = mesh; + build(); + } + /** * Construct a LodGenerator for the given geometry *