[Bf-blender-cvs] [14995c5] master: Fix crash w/ auto-insert offset

Campbell Barton noreply at git.blender.org
Thu Jul 21 20:22:41 CEST 2016


Commit: 14995c5617d130dd876e57cb52b1523eb21ccebe
Author: Campbell Barton
Date:   Fri Jul 22 04:17:24 2016 +1000
Branches: master
https://developer.blender.org/rB14995c5617d130dd876e57cb52b1523eb21ccebe

Fix crash w/ auto-insert offset

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

M	source/blender/editors/space_node/node_relationships.c

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

diff --git a/source/blender/editors/space_node/node_relationships.c b/source/blender/editors/space_node/node_relationships.c
index d724989..ea3869e 100644
--- a/source/blender/editors/space_node/node_relationships.c
+++ b/source/blender/editors/space_node/node_relationships.c
@@ -1726,7 +1726,7 @@ static int node_insert_offset_modal(bContext *C, wmOperator *UNUSED(op), const w
 	float duration;
 	bool redraw = false;
 
-	if (!snode || event->type != TIMER || iofsd->anim_timer != event->customdata)
+	if (!snode || event->type != TIMER || iofsd == NULL || iofsd->anim_timer != event->customdata)
 		return OPERATOR_PASS_THROUGH;
 
 	duration = (float)iofsd->anim_timer->duration;




More information about the Bf-blender-cvs mailing list