From 77ad5a1a89aa43d9a3c8c58abff1ae184510cec6 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 8 Jun 2019 21:08:00 +0300 Subject: [PATCH] Fix a copypaste error in AnimationPlayer uniform setting code --- source/animationplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/animationplayer.cpp b/source/animationplayer.cpp index cbcb6b59..a3c6ee22 100644 --- a/source/animationplayer.cpp +++ b/source/animationplayer.cpp @@ -209,7 +209,7 @@ void AnimationPlayer::set_object_uniform(AnimatedObject &obj, const string &name shdata.uniform(name, uni.values[0]); else if(uni.size==2) shdata.uniform2(name, uni.values); - else if(uni.size==2) + else if(uni.size==3) shdata.uniform3(name, uni.values); else if(uni.size==4) shdata.uniform4(name, uni.values); -- 2.45.2