소스 검색

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

krzycho 10 년 전
부모
커밋
2287d030a2
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;
 }