Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2013-04-17 21:12:12 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2013-04-17 21:12:12 +0400
commit2cf167cd21dae8403bcd628106d376faeb919b30 (patch)
tree27e7fed8a7511c2ec2c8d96c8b2bcb3f6e3c8efa /source/blender/makesdna
parent3d7803225122476e5ea3db8da2585fcaff7c7f59 (diff)
Fix for #34911, Compositor with multiple views autozooms to node when creating a link. In order to allow node trees have different offsets in different editor instances, the view_center is now stored primarily in the bNodeTreePath struct for each tree in a node space. The view_center in bNodeTree is only used as an initial setting when opening a node group or switching node trees.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_space_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h
index 02316461d95..91987294572 100644
--- a/source/blender/makesdna/DNA_space_types.h
+++ b/source/blender/makesdna/DNA_space_types.h
@@ -891,6 +891,7 @@ typedef struct bNodeTreePath {
struct bNodeTree *nodetree;
bNodeInstanceKey parent_key; /* base key for nodes in this tree instance */
int pad;
+ float view_center[2]; /* v2d center point, so node trees can have different offsets in editors */
/* XXX this is not automatically updated when node names are changed! */
char node_name[64]; /* MAX_NAME */
} bNodeTreePath;