diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-02-10 13:24:05 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-02-10 13:24:05 +0300 |
commit | 763e8d0bec3c49ca3f1644ef551f1e0cfdf30adf (patch) | |
tree | 5979691625299810cfae2fc497b115fc0af81e1c /source/blender/editors | |
parent | 5dffb646756cf179cbc702f628e26db2384db0a0 (diff) |
Bugfix [#26004] compositor: backdrop zoom factor too small
The backdrop zoom factor for new node-editor instances was not set
(i.e. was default initialised to 0). Now, this gets set to 1.0.
Also, set the property default in RNA to match this.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_node/space_node.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/space_node.c b/source/blender/editors/space_node/space_node.c index dab6568bea6..1ac745b8c0e 100644 --- a/source/blender/editors/space_node/space_node.c +++ b/source/blender/editors/space_node/space_node.c @@ -98,6 +98,9 @@ static SpaceLink *node_new(const bContext *UNUSED(C)) snode= MEM_callocN(sizeof(SpaceNode), "initnode"); snode->spacetype= SPACE_NODE; + /* backdrop */ + snode->zoom = 1.0f; + /* header */ ar= MEM_callocN(sizeof(ARegion), "header for node"); |