Commit a67fb95
committed
Keyframe interpolation selection: Use switch instead of if
Using switch allows (some) compilers to emit a warning if a possible
enum value for the interpolation type has been forgotten. This is not
the case now, but might guard against future errors (e.g. adding an
interpolation type)1 parent b546b6a commit a67fb95
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
242 | 241 | | |
243 | 242 | | |
244 | 243 | | |
245 | 244 | | |
246 | 245 | | |
| 246 | + | |
| 247 | + | |
247 | 248 | | |
248 | 249 | | |
249 | | - | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
0 commit comments