mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
small fixes
This commit is contained in:
parent
5900e7f589
commit
0e1510214a
@ -2,3 +2,4 @@
|
|||||||
|
|
||||||
name="Motion Test"
|
name="Motion Test"
|
||||||
main_scene="res://motion.scn"
|
main_scene="res://motion.scn"
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user