From 9a80f013fcf530a189d5b2009fcbd7006f6ebe30 Mon Sep 17 00:00:00 2001 From: Remy Van Doosselaer Date: Tue, 9 Apr 2019 19:24:10 +0200 Subject: [PATCH] fixed wrong reference check --- jme3-core/src/main/java/com/jme3/shader/Uniform.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-core/src/main/java/com/jme3/shader/Uniform.java b/jme3-core/src/main/java/com/jme3/shader/Uniform.java index 0340c8a13..30d5d72bf 100644 --- a/jme3-core/src/main/java/com/jme3/shader/Uniform.java +++ b/jme3-core/src/main/java/com/jme3/shader/Uniform.java @@ -373,7 +373,7 @@ public class Uniform extends ShaderVariable { //feed this.value with the collected values. if (this.value instanceof ColorRGBA) { ((ColorRGBA) this.value).set(vec4.x, vec4.y, vec4.z, vec4.w); - } else if (value instanceof Vector4f) { + } else if (this.value instanceof Vector4f) { ((Vector4f) this.value).set(vec4); } else { ((Quaternion) this.value).set(vec4.x, vec4.y, vec4.z, vec4.w);