1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

fixed problem with crashing godot when changing number of steps while no animation added

This commit is contained in:
krzycho
2015-06-11 14:39:50 +02:00
parent bc6d91c897
commit 2287d030a2

View File

@@ -3319,6 +3319,7 @@ void AnimationKeyEditor::_insert_delay() {
void AnimationKeyEditor::_step_changed(float p_len) { void AnimationKeyEditor::_step_changed(float p_len) {
updating=true; updating=true;
if (!animation.is_null())
animation->set_step(p_len); animation->set_step(p_len);
updating=false; updating=false;
} }