mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 12:41:06 +01:00 
			
		
		
		
	Drag and Drop: Source can also inhibit the preview on target, useful for extern sources that only exists for one frame. (#143)
This commit is contained in:
		| @@ -11422,6 +11422,7 @@ const ImGuiPayload* ImGui::AcceptDragDropPayload(const char* type, ImGuiDragDrop | |||||||
|  |  | ||||||
|     // Render default drop visuals |     // Render default drop visuals | ||||||
|     payload.Preview = was_accepted_previously; |     payload.Preview = was_accepted_previously; | ||||||
|  |     flags |= (g.DragDropSourceFlags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect); // Source can also inhibit the preview (useful for external sources that lives for 1 frame) | ||||||
|     if (!(flags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect) && payload.Preview) |     if (!(flags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect) && payload.Preview) | ||||||
|     { |     { | ||||||
|         // FIXME-DRAG: Settle on a proper default visuals for drop target. |         // FIXME-DRAG: Settle on a proper default visuals for drop target. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user