[Bf-blender-cvs] [bb0ec82] wiggly-widgets: Fix backdrop initialization for opening new Graph Editor

Julian Eisel noreply at git.blender.org
Wed Apr 8 19:42:28 CEST 2015


Commit: bb0ec82bc459b137166493be8466e087d5742a72
Author: Julian Eisel
Date:   Wed Apr 8 16:54:27 2015 +0200
Branches: wiggly-widgets
https://developer.blender.org/rBbb0ec82bc459b137166493be8466e087d5742a72

Fix backdrop initialization for opening new Graph Editor

===================================================================

M	source/blender/editors/space_graph/space_graph.c

===================================================================

diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c
index b49ad63..4fd6276 100644
--- a/source/blender/editors/space_graph/space_graph.c
+++ b/source/blender/editors/space_graph/space_graph.c
@@ -104,6 +104,8 @@ static SpaceLink *graph_new(const bContext *C)
 	sipo->autosnap = SACTSNAP_FRAME;
 	
 	sipo->backdrop_camera = scene->camera;
+	sipo->backdrop_zoom = 1.0f;
+	sipo->backdrop_opacity = 0.7f;
 	
 	/* allocate DopeSheet data for Graph Editor */
 	sipo->ads = MEM_callocN(sizeof(bDopeSheet), "GraphEdit DopeSheet");




More information about the Bf-blender-cvs mailing list