🔧 Only set duration if required

This commit is contained in:
Simon Schneegans
2022-06-10 14:13:29 +02:00
parent cc86b16817
commit b4455d5f48
4 changed files with 3 additions and 1 deletions
-1
View File
@@ -32,7 +32,6 @@ class %EFFECT_CLASS% {
loadConfig() {
this.duration = animationTime(effect.readConfig('Duration', 1000));
effect.setUniform(this.shader, 'uDuration', this.duration * 0.001);
%ON_SETTINGS_CHANGE%
}