Files
test2/source/blender/blenkernel/intern
Sybren A. Stüvel 61f8364dd1 Refactor: Anim, reduce cognitive complexity in ..._get_tarmat functions
Simplify the `${CONSTRAINT}_get_tarmat` functions, mostly by reducing
nesting via early returns.

Code like this:

```cpp
void blabla_get_tarmat(...) {
  if (VALID_CONS_TARGET(ct)) {
    // ... do useful stuff.
  }
  else if (ct) {
    unit_m4(ct->matrix);
  }
}
```

now looks like:

```cpp
void blabla_get_tarmat(...) {
  if (!VALID_CONS_TARGET(ct)) {
    unit_ct_matrix_nullsafe(ct);
    return;
  }

  // ... do useful stuff.
}
```

This is mostly done as preparation for an upcoming functional change.

No functional changes.

Pull Request: https://projects.blender.org/blender/blender/pulls/132591
2025-01-03 14:07:29 +01:00
..
2024-12-17 21:04:55 +01:00
2024-12-17 21:04:55 +01:00
2024-10-15 16:22:38 +11:00
2025-01-02 15:11:23 +11:00
2024-11-02 17:34:00 +11:00
2024-10-01 09:59:33 +10:00
2024-09-21 16:22:52 +10:00
2024-09-10 13:41:01 +02:00
2024-12-17 21:04:55 +01:00
2024-12-17 21:04:55 +01:00
2024-08-22 17:05:48 +02:00
2024-08-04 13:45:06 +10:00