فهرست منبع

-fix timer behavior described, closes #1455

Juan Linietsky 10 سال پیش
والد
کامیت
bf53b7789a
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      scene/main/timer.cpp

+ 2 - 0
scene/main/timer.cpp

@@ -46,6 +46,8 @@ void Timer::_notification(int p_what) {
 		} break;
 		case NOTIFICATION_PROCESS: {
 
+			if (!is_processing())
+				return;
 			time_left -= get_process_delta_time();
 
 			if (time_left<0) {