Blender Git Commit Log

Git Commits -> Revision 29887bb

March 26, 2021, 16:25 (GMT)
Fix possible crash when blending poses

I did some casting hack to return an `AssetHandle` from a
`FileDirEntry`. But this doesn't actually work.

What I added now isn't something I'm happy with either, but it will have
to do for now. Basically we request an `AssetHandle`, which the Asset
Browser doesn't actually store, since it's just a wrapper around the
Asset Browser's `FileDirEntry`. So there is no consistent pointer the
editor could return to context queries, and the context needs a pointer
so that it can be passed around as `void *`.

Eventually once we have the planned asset storage design implemented,
the storage would include actual asset handles. So we can pass around
consistent pointers to them then.

Commit Details:

Full Hash: 29887bbb329da4fe298a794521fa510258707217
Parent Commit: c81b104
Lines Changed: +35, -21

4 Modified Paths:

/source/blender/blenkernel/BKE_context.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/context.c (+26, -0) (Diff)
/source/blender/editors/armature/pose_lib_2.c (+8, -7) (Diff)
/source/blender/editors/space_file/space_file.c (+0, -14) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021