New Window Operator (to replace Duplicate Window)
A user doesn't want to necessarily create a new Screen only because she wants a new window. This patch allows the user to pick the screen to use for the new Window. If the screen picked is the active one, it duplicates it (as the old behaviour in Blender). Patch with contributions and fixes by Julian Eisel (Severin) Subscribers: venomgfx Differential Revision: https://developer.blender.org/D2555
This commit is contained in:
		@@ -4399,7 +4399,7 @@ static void operator_enum_search_cb(const struct bContext *C, void *but, const c
 | 
			
		||||
		for (item = item_array; item->identifier; item++) {
 | 
			
		||||
			/* note: need to give the index rather than the identifier because the enum can be freed */
 | 
			
		||||
			if (BLI_strcasestr(item->name, str)) {
 | 
			
		||||
				if (false == UI_search_item_add(items, item->name, SET_INT_IN_POINTER(item->value), 0))
 | 
			
		||||
				if (false == UI_search_item_add(items, item->name, SET_INT_IN_POINTER(item->value), item->icon))
 | 
			
		||||
					break;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user