BlueGit

timfa frameworkv3

small fix

timfa wsadhelios · pushed by timfa

Authored 2022-10-18 · 4 years ago

Hash
17fa57cec251f8725d352c4424531d637d7c2e7f
Parent
7777ab80
1 file changed +2 −2
framework/engine/objectComponents/renderer.js +2 −2
@@ -23,7 +23,7 @@ class Renderer
23 23 {
24 24 if(!this.cycle.cycleSpeed || this.cycle.cycleSpeed == -1)
25 25 {
26 this.subImage = this.cycle.default;
26 this.subImage = this.cycle.cycleArray[this.cycle.default];
27 27 this.cycle.current = this.cycle.default;
28 28 return;
29 29 }
@@ -117,7 +117,7 @@ class Renderer
117 117 );
118 118 }
119 119
120 setAnimation(label, defaultIndex, cycleSpeed = -1)
120 setAnimation(label, defaultIndex = 0, cycleSpeed = -1)
121 121 {
122 122 if(this.cycle)
123 123 {
@@ -23,7 +23,7 @@ class Renderer
23 {
23 {
24 if(!this.cycle.cycleSpeed || this.cycle.cycleSpeed == -1)
24 if(!this.cycle.cycleSpeed || this.cycle.cycleSpeed == -1)
25 {
25 {
26 this.subImage = this.cycle.default;
26 this.subImage = this.cycle.cycleArray[this.cycle.default];
27 this.cycle.current = this.cycle.default;
27 this.cycle.current = this.cycle.default;
28 return;
28 return;
29 }
29 }
@@ -117,7 +117,7 @@ class Renderer
117 );
117 );
118 }
118 }
119
119
120 setAnimation(label, defaultIndex, cycleSpeed = -1)
120 setAnimation(label, defaultIndex = 0, cycleSpeed = -1)
121 {
121 {
122 if(this.cycle)
122 if(this.cycle)
123 {
123 {