summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorkrzycho <krzycho_s@tlen.pl>2015-06-11 14:39:50 +0200
committerkrzycho <krzycho_s@tlen.pl>2015-06-11 14:39:50 +0200
commit2287d030a25d8c52d1ebe2303794d6cfa740e6a0 (patch)
tree80346172785377f83d987791162631c9de1c4fa6 /tools/editor
parentbc6d91c8973619a6c4ce54a140197ba93d184cec (diff)
fixed problem with crashing godot when changing number of steps while no animation added
Diffstat (limited to 'tools/editor')
-rw-r--r--tools/editor/animation_editor.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}