Beispiel #1
0
def WM_main(C):		# from wm.c
	while True:
		#/* get events from ghost, handle window events, add to window queues */
		print('proc events...')
		blender.wm_window_process_events(C); 
		#/* per window, all events to the window, screen, area and region handlers */
		print('do handlers...')
		blender.wm_event_do_handlers(C);
		#/* events have left notes about changes, we handle and cache it */
		print('do notifiers...')
		blender.wm_event_do_notifiers(C);
		#/* execute cached changes draw */
		print('drawing....')
		blender.wm_draw_update(C)		# SEGFAULTS wmSubWindowSet 0: doesn't exist
Beispiel #2
0
def iterate(C, draw=True):
	blender.wm_window_process_events(C)	# might sleep 5ms if no events
	blender.wm_event_do_handlers(C)
	blender.wm_event_do_notifiers(C)
	if draw: blender.wm_draw_update(C)