From 94ee5852b42b05559069596e205dc2f000e6153f Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 12 Jun 2019 00:19:10 +0300 Subject: [PATCH] Add overloads of keyframe uniform statements without size suffixes --- source/keyframe.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/keyframe.cpp b/source/keyframe.cpp index 856b85d6..f610de2d 100644 --- a/source/keyframe.cpp +++ b/source/keyframe.cpp @@ -121,6 +121,12 @@ void KeyFrame::Loader::uniforms() KeyFrame::UniformsLoader::UniformsLoader(KeyFrame &k): DataFile::ObjectLoader(k) { + add("uniform", &UniformsLoader::uniform1f); + add("uniform", &UniformsLoader::uniform2f); + add("uniform", &UniformsLoader::uniform3f); + add("uniform", &UniformsLoader::uniform4f); + + // Deprecated add("uniform1f", &UniformsLoader::uniform1f); add("uniform2f", &UniformsLoader::uniform2f); add("uniform3f", &UniformsLoader::uniform3f); -- 2.45.2