From 23626e0149f25f13855735bbb7f65121e0c40ca0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 16 Sep 2013 04:04:44 +0000 Subject: fix [#36444] view3d.viewnumpad operator should not animate when running viewport operations with exec() rather then invoke(), perform the action immediately rather then using smoothview. makes viewport operations usable from python scripts. --- source/blender/editors/space_node/node_intern.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/space_node/node_intern.h') diff --git a/source/blender/editors/space_node/node_intern.h b/source/blender/editors/space_node/node_intern.h index 9b7b00fba00..176b81f9503 100644 --- a/source/blender/editors/space_node/node_intern.h +++ b/source/blender/editors/space_node/node_intern.h @@ -122,7 +122,8 @@ void NODE_OT_select_same_type_step(struct wmOperatorType *ot); void NODE_OT_find_node(struct wmOperatorType *ot); /* node_view.c */ -int space_node_view_flag(struct bContext *C, SpaceNode *snode, ARegion *ar, const int node_flag); +int space_node_view_flag(struct bContext *C, SpaceNode *snode, ARegion *ar, + const int node_flag, const int smooth_viewtx); void NODE_OT_view_all(struct wmOperatorType *ot); void NODE_OT_view_selected(struct wmOperatorType *ot); -- cgit v1.2.3