From 2287d030a25d8c52d1ebe2303794d6cfa740e6a0 Mon Sep 17 00:00:00 2001 From: krzycho Date: Thu, 11 Jun 2015 14:39:50 +0200 Subject: fixed problem with crashing godot when changing number of steps while no animation added --- tools/editor/animation_editor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/editor') diff --git a/tools/editor/animation_editor.cpp b/tools/editor/animation_editor.cpp index bb6f7e9a6f..d431af6c8d 100644 --- a/tools/editor/animation_editor.cpp +++ b/tools/editor/animation_editor.cpp @@ -3319,7 +3319,8 @@ void AnimationKeyEditor::_insert_delay() { void AnimationKeyEditor::_step_changed(float p_len) { updating=true; - animation->set_step(p_len); + if (!animation.is_null()) + animation->set_step(p_len); updating=false; } -- cgit v1.2.3