From 1dfc7942d3f35cbb8bb0e94fec57828da0eb756c Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 11 Nov 2009 08:12:54 +0000 Subject: Grease Pencil for Nodes Editor: This commit restores Grease Pencil functionality for the Nodes Editor. Grease Pencil data is now stored at the NodeTree level, which means that annotations remain with the NodeTree they were made for. Possible TODO's: * In future, it may be worth investigating attaching Grease Pencil data to individual nodes, to allow annotations to stay attached to nodes as they are moved * Include the settings for the 'active node' in a panel in the new NKEY region where the Grease Pencil buttons appear. --- source/blender/makesdna/DNA_node_types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/makesdna/DNA_node_types.h') diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index 9d80f7f720e..ab7277ee840 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -40,6 +40,7 @@ struct bNodeLink; struct bNodeType; struct bNodeGroup; struct AnimData; +struct bGPdata; struct uiBlock; #define NODE_MAXSTR 32 @@ -168,6 +169,8 @@ typedef struct bNodeTree { ID id; struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */ + struct bGPdata *gpd; /* grease pencil data */ + ListBase nodes, links; bNodeStack *stack; /* stack is only while executing, no read/write in file */ -- cgit v1.2.3