From a04a304954f459d1e1f5dc8c61efc0a99c4394a3 Mon Sep 17 00:00:00 2001 From: Nehon Date: Thu, 12 Feb 2015 22:29:44 +0100 Subject: [PATCH] Fixed an error where matching swizzle were reported as wrong when using swizzle of type vec3 v3 = v2.xxy --- jme3-core/src/main/java/com/jme3/shader/ShaderUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/shader/ShaderUtils.java b/jme3-core/src/main/java/com/jme3/shader/ShaderUtils.java index c057826e8..b64e44814 100644 --- a/jme3-core/src/main/java/com/jme3/shader/ShaderUtils.java +++ b/jme3-core/src/main/java/com/jme3/shader/ShaderUtils.java @@ -120,11 +120,11 @@ public class ShaderUtils { card = Integer.parseInt(type.replaceAll(".*vec", "")); if (swizzling.length() > 0) { - if (card >= swizzling.length()) { + //if (card >= swizzling.length()) { card = swizzling.length(); - } else { - card = 0; - } +// } else { +// card = 0; +// } } } }