small fixes

This commit is contained in:
Juan Linietsky 2015-06-01 23:35:23 -03:00
parent 5900e7f589
commit 0e1510214a
3 changed files with 4 additions and 3 deletions

View File

@ -2,3 +2,4 @@
name="Motion Test" name="Motion Test"
main_scene="res://motion.scn" main_scene="res://motion.scn"

View File

@ -1320,8 +1320,8 @@ bool Main::iteration() {
double step=(double)ticks_elapsed / 1000000.0; double step=(double)ticks_elapsed / 1000000.0;
float frame_slice=1.0/OS::get_singleton()->get_iterations_per_second(); float frame_slice=1.0/OS::get_singleton()->get_iterations_per_second();
//if (time_accum+step < frame_slice) // if (time_accum+step < frame_slice)
// return false; // return false;
frame+=ticks_elapsed; frame+=ticks_elapsed;

View File

@ -223,7 +223,7 @@ void AnimationPlayer::_notification(int p_what) {
} break; } break;
case NOTIFICATION_EXIT_TREE: { case NOTIFICATION_EXIT_TREE: {
stop_all(); //stop_all();
clear_caches(); clear_caches();
} break; } break;
} }