Blender Git Commits

Blender Git "temp-pose-flipping-fix-attempt" branch commits.

Page: 13 / 16

March 16, 2021, 10:41 (GMT)
Pose Library: don't crash `POSELIB_OT_blend_pose` outside asset browser
March 16, 2021, 10:05 (GMT)
Cleanup: update TODO

No functional changes.
March 16, 2021, 10:04 (GMT)
Pose Library: blend quaternions properly, instead of LERPing them

This also removes the `bool flush_to_original` argument, as this flushing
is not required for the pose library (poses are always applied to the
original, and not to evaluated copies).
March 15, 2021, 17:05 (GMT)
Cleanup: remove unnecessary `ATTR_FALLTHROUGH`

`ATTR_FALLTHROUGH` is only necessary when there is actually code inside
the falling-through `case`.

No functional changes.
March 15, 2021, 16:45 (GMT)
Explicitly consider hidden bones as not selected
March 15, 2021, 16:02 (GMT)
Cleanup: pose library, remove unused includes

No functional changes.
March 15, 2021, 16:02 (GMT)
Pose blending: also apply rounding to floats

My code for interpolating booleans basically performed the same function
as the rounding for ints and enums. Now the code is the same, too.

No functional changes
March 15, 2021, 16:02 (GMT)
Add operator `POSELIB_OT_blend_pose` for interactive pose blending

The operator doesn't blend yet, but it does allow temporarily applying the
pose, switching between the original and the given pose with Tab, applying
the pose with Enter/LeftClick, and cancelling with Esc/RightClick.
March 15, 2021, 16:02 (GMT)
Rough implementation for temp-loading poses from C

The code needs some cleanup, as the temp-loading of asset datablocks needs
to be separated from the pose library code.
March 15, 2021, 16:02 (GMT)
Cleanup: remove unused code and rename variables/fields

No functional changes.
March 15, 2021, 16:02 (GMT)
Pose library: add simple blending of pose Action onto current pose

Naieve blending of the pose Action onto the current pose. This performs
linear blending (LERP) per FCurve. This is not suitable for rotations, so
it's probably better to do proper matrix interpolation for loc/rot/scale.
However, for other properties, the current LERP will be necessary anyway.
March 15, 2021, 16:02 (GMT)
Pose library: Use scrollwheel to set the blend factor

This is not the final UI, but gives a way to at least set it to some value.
March 11, 2021, 17:05 (GMT)
Do proper updates when local asset data changes

Makes sure the asset list is updated and redrawn correctly an local asset data
changes: Creating assets, removing assets, clearing assets, undo/redo, reading
files (with and without UI), parallel reading of asset data from files, ...

For redraws there now is a listener callback in the uiList type (C only) that
asks the asset lists if it needs a redraw after a given notifier. For the case
of asset data-block removal there is a ID remapping function in the asset list
now (just tags the list for a complete re-read). File reading, undo, redo and
the "Mark Asset"/"Clear Asset" operators explicitly tag asset lists showing
main data as dirty (via the global asset storage).
March 11, 2021, 16:50 (GMT)
Merge branch 'master' into ui-asset-view-template
March 11, 2021, 13:58 (GMT)
Merge branch 'master' into ui-asset-view-template
March 9, 2021, 17:58 (GMT)
Support passing ID type filter to the template

The ID type filter can be set as follows:
```
template_asset_view(..., filter_id_types={'filter_material', 'filter_object'})
```

I would have prefered if you could just create a
`bpy.types.AssetFilterSettings` object, fill that and pass it to the
template. But that doesn't seem possible right now without more complex
BPY additions.
Also, newer ID types (hair, point cloud, volume and simulation IDs) do
not support filtering, because their filtering flags exceed 32, meaning
we have to store them in 64 bit integers which RNA doesn't support for
enum properties...
March 9, 2021, 13:59 (GMT)
Merge branch 'master' into ui-asset-view-template
March 4, 2021, 15:29 (GMT)
Fix items not showing up if the preview is missing

No reason to skip adding the UI elements just because the preview is missing.
We can still show the text and allow dragging. Also makes it feel more
interactive while the previews load in a background thread.
March 4, 2021, 14:57 (GMT)
Add own button/widget type for the asset previews

The new button type (UI_BTYPE_PREVIEW_TILE) shows the items similar to
the Asset Browser, or the File Browser in thumbnail display mode. That
is, previews bigger than normal buttons, with the name drawn centered
below it.

Would be nice if the File/Asset Browser and preview templates could
adopt that new button type, so that there's no ad-hoc drawing for these
anymore. That's for a future cleanup though.
March 3, 2021, 20:44 (GMT)
Properly support mouse-selecting items in the asset view list

This was very glitchy before and just didn't work in most cases. The mouse
press event was simply caught by the preview icon button and didn't make its
way to the underlying list-row button.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021