Sybren A. Stüvel
85d77b79a6
Refactor: Anim, use eBezTriple_KeyframeType in more code
...
Instead of using `short key_type`, use `eBezTriple_KeyframeType key_type`,
so that it's clear which type it is, and so that a `switch()` can cause
compiler warnings when it's incomplete.
This also adds missing `case`s to `switch`es where necessary, in a way
that doesn't affect the outcome. There is one change that looks like it
is a functional change, but it should provide the same result:
```diff
- size -= 0.8f * key_type;
+ size *= 0.8f;
```
Since `size = 12` and in this case `key_type = 3`, the numerical values
are the same, but now the code is consistently multiplying and thus should
scale properly.
Furthermore some overly obvious comments are removed and some missing
`const` keywords have been added.
No functional changes.
Pull Request: https://projects.blender.org/blender/blender/pulls/120178
2024-04-05 11:53:57 +02:00
..
2024-04-03 15:34:40 +02:00
2023-08-16 00:20:26 +10:00
2024-04-04 11:26:28 +11:00
2024-03-18 15:04:12 +01:00
2024-03-27 10:25:31 +11:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-01-26 12:40:01 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-01-03 13:38:14 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-04-04 11:26:28 +11:00
2024-03-18 15:04:12 +01:00
2023-09-04 15:59:40 +02:00
2024-03-18 15:04:12 +01:00
2023-09-04 15:59:40 +02:00
2023-09-04 15:59:40 +02:00
2024-03-18 15:04:12 +01:00
2023-11-23 15:07:40 +01:00
2024-03-21 15:35:02 +01:00
2024-03-26 17:55:20 +11:00
2024-03-18 15:04:12 +01:00
2024-04-05 11:53:57 +02:00
2023-09-04 15:59:40 +02:00
2024-03-18 15:04:12 +01:00
2023-12-21 03:29:18 +01:00
2024-03-18 15:04:12 +01:00
2023-05-31 16:19:06 +02:00
2024-01-03 13:38:14 +01:00
2023-07-31 13:02:30 +10:00
2023-09-04 15:59:40 +02:00
2023-09-04 15:59:40 +02:00
2023-09-04 15:59:40 +02:00
2024-03-18 15:04:12 +01:00
2023-09-04 15:59:40 +02:00
2023-09-04 15:59:40 +02:00
2023-09-25 13:20:17 +10:00
2024-03-26 17:55:20 +11:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2023-09-04 15:59:40 +02:00
2024-04-03 15:34:40 +02:00
2024-04-03 15:34:40 +02:00
2024-03-18 15:04:12 +01:00
2024-04-05 09:54:57 +02:00
2024-03-18 15:04:12 +01:00
2024-03-26 17:55:20 +11:00
2023-10-30 21:40:35 +01:00
2024-01-18 13:17:24 +01:00
2024-03-18 15:04:12 +01:00
2023-09-04 15:59:40 +02:00
2024-03-18 15:04:12 +01:00
2024-03-20 15:54:41 +01:00
2024-03-20 15:54:41 +01:00
2024-03-18 15:04:12 +01:00
2023-11-02 17:08:13 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2023-09-04 15:59:40 +02:00
2023-09-04 15:59:40 +02:00
2023-10-30 21:40:35 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-03-21 23:18:49 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2023-09-04 15:59:40 +02:00
2024-03-29 21:42:30 +01:00
2024-03-29 21:42:30 +01:00
2024-03-18 15:04:12 +01:00
2024-01-23 20:26:55 +11:00
2023-09-04 15:59:40 +02:00
2023-12-20 13:25:28 -05:00
2024-04-04 13:14:10 +02:00
2024-03-18 15:04:12 +01:00
2024-03-28 01:30:38 +01:00
2023-09-04 15:59:40 +02:00
2024-03-27 18:06:31 +01:00
2024-03-18 15:04:12 +01:00
2023-09-18 12:14:54 +02:00
2023-09-04 15:59:40 +02:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2023-09-04 15:59:40 +02:00
2024-03-18 15:04:12 +01:00
2023-09-04 15:59:40 +02:00
2024-03-29 13:29:30 +11:00
2024-03-19 19:16:21 +01:00
2023-11-03 09:05:31 +01:00
2024-03-27 13:17:24 +01:00
2024-03-26 17:55:20 +11:00
2023-09-04 15:59:40 +02:00
2024-03-18 15:04:12 +01:00
2024-01-22 13:47:13 +01:00
2023-09-04 15:59:40 +02:00
2023-09-25 17:06:04 +10:00
2024-03-18 15:04:12 +01:00
2024-03-27 02:45:27 +01:00
2024-03-18 15:04:12 +01:00
2023-09-04 15:59:40 +02:00
2023-09-04 15:59:40 +02:00
2024-03-18 15:04:12 +01:00
2023-12-17 16:04:42 +11:00
2023-09-04 15:59:40 +02:00
2024-03-18 15:04:12 +01:00
2023-09-04 15:59:40 +02:00
2024-03-27 10:25:31 +11:00
2023-09-04 15:59:40 +02:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2023-09-04 15:59:40 +02:00
2024-01-10 10:04:13 +11:00
2024-03-18 15:04:12 +01:00
2023-09-04 15:59:40 +02:00
2024-01-23 16:07:39 +11:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2024-01-06 13:26:59 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2023-10-30 21:40:35 +01:00
2023-12-15 22:57:34 +11:00