Преглед на файлове

Merge pull request #2070 from Krzycho666/AnimationPlayer_fix

Animation player set_steps fix
Juan Linietsky преди 10 години
родител
ревизия
5092cc46b4
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      tools/editor/animation_editor.cpp

+ 2 - 1
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;
 }