Grease Pencil: WIP Code Reordering + Context Stuff
authorJoshua Leung <aligorith@gmail.com>
Fri, 28 Aug 2009 12:41:45 +0000 (12:41 +0000)
committerJoshua Leung <aligorith@gmail.com>
Fri, 28 Aug 2009 12:41:45 +0000 (12:41 +0000)
commitc15db042cc1b1168a9894a7f5848a866e7b3575a
treecf7c2fb5eba821163a92a4a186157905c9443b01
parentd7656684e213e4755e6f499d2e3a0734507e803d
Grease Pencil: WIP Code Reordering + Context Stuff

* Shuffled some code around, and renamed some functions used for getting context info
- Split UI-buttons into a separate file from stroke-drawing code
- Removed some obsolete code (i.e. old paint code that used to be in _edit, but which has been moved to _paint).

* Made drawing in 3D-View default to using the active object as the owner of the Grease Pencil data. For now, the drawing code will therefore only show the GP data for the active object only. More work to come on this.

* Fixed freeing code for Objects/Scenes with GP data.
12 files changed:
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/scene.c
source/blender/blenloader/intern/readfile.c
source/blender/editors/animation/anim_filter.c
source/blender/editors/gpencil/drawgpencil.c
source/blender/editors/gpencil/gpencil_buttons.c [new file with mode: 0644]
source/blender/editors/gpencil/gpencil_edit.c
source/blender/editors/gpencil/gpencil_paint.c
source/blender/editors/include/ED_gpencil.h
source/blender/editors/transform/transform_conversions.c
source/blender/makesdna/DNA_object_types.h
source/blender/makesrna/intern/rna_object.c