mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Drag and Drop: Allow NULL payload (since type only can be useful). (#143)
This commit is contained in:
		| @@ -10742,7 +10742,7 @@ bool ImGui::SetDragDropPayload(const char* type, const void* data, size_t data_s | ||||
|  | ||||
|     IM_ASSERT(type != NULL); | ||||
|     IM_ASSERT(strlen(type) < IM_ARRAYSIZE(payload.DataType));       // Payload type can be at most 8 characters longs | ||||
|     IM_ASSERT(data != NULL && data_size > 0); | ||||
|     IM_ASSERT((data != NULL && data_size > 0) || (data == NULL && data_size == 0)); | ||||
|     IM_ASSERT(cond == ImGuiCond_Always || cond == ImGuiCond_Once); | ||||
|     IM_ASSERT(payload.SourceId != 0);                               // Not called between BeginDragDropSource() and EndDragDropSource() | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user