2.5
More notifier cleanup; - removed view2d sync notifier, its data operations are too complex for UI hints/notes, direct calls work too :) - updated missing gpl header in region file Noticed weird delay on menu refreshing now... will check.
This commit is contained in:
		@@ -167,8 +167,7 @@ static void view_pan_apply(bContext *C, wmOperator *op)
 | 
			
		||||
	
 | 
			
		||||
	/* request updates to be done... */
 | 
			
		||||
	ED_area_tag_redraw(C->area);
 | 
			
		||||
	if(v2d->flag & V2D_VIEWSYNC_X)
 | 
			
		||||
		WM_event_add_notifier(C, WM_NOTE_TIMELINE_SYNC, V2D_LOCK_COPY, v2d);
 | 
			
		||||
	UI_view2d_sync(C->screen, v2d, V2D_LOCK_COPY);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* cleanup temp customdata  */
 | 
			
		||||
@@ -496,8 +495,7 @@ static void view_zoomstep_apply(bContext *C, wmOperator *op)
 | 
			
		||||
	
 | 
			
		||||
	/* request updates to be done... */
 | 
			
		||||
	ED_area_tag_redraw(C->area);
 | 
			
		||||
	if(v2d->flag & V2D_VIEWSYNC_X)
 | 
			
		||||
		WM_event_add_notifier(C, WM_NOTE_TIMELINE_SYNC, V2D_LOCK_COPY, v2d);
 | 
			
		||||
	UI_view2d_sync(C->screen, v2d, V2D_LOCK_COPY);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* --------------- Individual Operators ------------------- */
 | 
			
		||||
@@ -649,8 +647,7 @@ static void view_zoomdrag_apply(bContext *C, wmOperator *op)
 | 
			
		||||
	
 | 
			
		||||
	/* request updates to be done... */
 | 
			
		||||
	ED_area_tag_redraw(C->area);
 | 
			
		||||
	if(v2d->flag & V2D_VIEWSYNC_X)
 | 
			
		||||
		WM_event_add_notifier(C, WM_NOTE_TIMELINE_SYNC, V2D_LOCK_COPY, v2d);
 | 
			
		||||
	UI_view2d_sync(C->screen, v2d, V2D_LOCK_COPY);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* cleanup temp customdata  */
 | 
			
		||||
@@ -1030,8 +1027,7 @@ static void scroller_activate_apply(bContext *C, wmOperator *op)
 | 
			
		||||
	
 | 
			
		||||
	/* request updates to be done... */
 | 
			
		||||
	ED_area_tag_redraw(C->area);
 | 
			
		||||
	if(v2d->flag & V2D_VIEWSYNC_X)
 | 
			
		||||
		WM_event_add_notifier(C, WM_NOTE_TIMELINE_SYNC, V2D_LOCK_COPY, v2d);
 | 
			
		||||
	UI_view2d_sync(C->screen, v2d, V2D_LOCK_COPY);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* handle user input for scrollers - calculations of mouse-movement need to be done here, not in the apply callback! */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user