Blender Git Loki

Git Commits -> Revision 6afde3e

October 22, 2016, 08:47 (GMT)
Multi-previews: basics (not yet usable from end-user code).

This commits adds data and basic API needed to handle multi-previews in
a single PreviewImage struct.

Data model is designed to be fully compatible (backward and forward)
with previous one, while keeping a 'flat array' design to store
previews. It also adds an extra integer per frame, that may be used to
store various meta-data.

This commit also updates write/read code, and adds basic BKE API to handle
multiple frames.

TODO: UI code (only very minimal stuff done so far, probably want to add
some template options too...). Access between icon ID and preview frames
is not yet fully designed, but think will rather go with an extra
integer rather that generating an icon ID/icon struct for every frame.

Commit Details:

Full Hash: 6afde3ed693e5e0d41b6162558ad7aff237d0885
Parent Commit: fd4caaf
Lines Changed: +188, -23

8 Modified Paths:

/source/blender/blenkernel/BKE_icons.h (+17, -0) (Diff)
/source/blender/blenkernel/intern/icons.c (+133, -8) (Diff)
/source/blender/blenloader/intern/readblenentry.c (+3, -2) (Diff)
/source/blender/blenloader/intern/writefile.c (+3, -2) (Diff)
/source/blender/editors/interface/interface_icons.c (+17, -8) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+3, -1) (Diff)
/source/blender/gpu/intern/gpu_texture.c (+3, -1) (Diff)
/source/blender/makesdna/DNA_ID.h (+9, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021