Blender Git Commit Log

Git Commits -> Revision 74b12d1

Revision 74b12d1 by Ton Roosendaal (master)
April 20, 2009, 10:13 (GMT)
2.5

Patch from Joshua, converting Grease Pencil to 2.5.
All GP data now is an ID block, allowing re-use, link and append.
For better contextual control within 2.5, these GP ID's will get
linked to actual data, like NodeTrees, Scenes, Images or Objects.
That will ensure Undo works, and opens up exciting new use cases
as well. :)

Patch note: on reading files, GPencils linked from editors will
get moved to the main library, using standard naming (indicating
where it was used), and with "Fake User" set. That way the user
can manually relink the pencils where appropriate.
We can check on just linking GP to some default, like 3d window
pencils to Scene? Nice to experiment with.

Notes for Joshua:
- for reading old GPencil, it has to use old code as well, meaning
to tread data as "indirect data, within another ID".
- Saving ID data means the chunk in file BHead needs the ID_GD code,
and not "DATA", which indicates 'indirect data'. That's the file
format spec.
- I've added do_versions_gpencil_2_50(), feel free to further tweak
things here, like linking things to scene or so.
- Formerly GPencil saved 2.50 files won't convert gpencil




Commit Details:

Full Hash: 74b12d1d6df9d3ff5b9f258c81eda82fa37901cf
SVN Revision: 19811
Parent Commit: 332e001
Lines Changed: +118, -54

11 Modified Paths:

/source/blender/blenkernel/BKE_main.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/library.c (+14, -2) (Diff)
/source/blender/blenloader/intern/readblenentry.c (+1, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+74, -11) (Diff)
/source/blender/blenloader/intern/writefile.c (+18, -19) (Diff)
/source/blender/editors/gpencil/drawgpencil.c (+1, -0) (Diff)
/source/blender/editors/gpencil/editaction_gpencil.c (+1, -0) (Diff)
/source/blender/editors/gpencil/gpencil_intern.h (+1, -1) (Diff)
/source/blender/editors/include/ED_gpencil.h (+3, -21) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+3, -0) (Diff)
/source/blender/makesdna/DNA_ID.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021