Files
test2/source/blender/blenkernel
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-05-08 11:25:00 +02:00
2024-11-25 13:24:46 +11:00
2024-09-21 16:22:52 +10:00
2024-12-09 09:14:44 +11:00
2024-08-22 17:05:48 +02:00