Blender Git Commit Log

Git Commits -> Revision c7fc643

April 28, 2021, 11:07 (GMT)
Attempt to fix build error on MSVC and warnings on some other compilers

On MSVC it failed with this error:
```
sourceblenderblenkernelBKE_context.h(361,20): error C2526:
'CTX_wm_asset_handle': C linkage function cannot return C++ class 'AssetHandle'
```

On Apple Clang I would get this:
```
warning: 'CTX_wm_asset_handle' has C-linkage specified, but returns incomplete
type 'struct AssetHandle' which could be incompatible with C
[-Wreturn-type-c-linkage]
struct AssetHandle CTX_wm_asset_handle(const bContext *C, bool *r_is_valid);
^
1 warning generated.
```

Just include the asset header defining the type for now, it should later on be
solved properly with a better design for `AssetHandle`.

Commit Details:

Full Hash: c7fc643728e1a19401bd144231dea21ee14a4144
Parent Commit: 39ce17f
Lines Changed: +3, -0

1 Modified Path:

/source/blender/blenkernel/BKE_context.h (+3, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021