Skip to content

Fix dragging objects from Assets to Viewport - #25

Merged
MomdAli merged 2 commits into
devfrom
bugfix/15-dragging-objects-not-working
Jul 5, 2026
Merged

Fix dragging objects from Assets to Viewport#25
MomdAli merged 2 commits into
devfrom
bugfix/15-dragging-objects-not-working

Conversation

@oltir06

@oltir06 oltir06 commented Mar 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fixed crash caused by ImGui::SetDragDropPayload() doing a memcpy on DragDropPayload which contains non-POD
    types (std::string, std::filesystem::path)
  • Use a lightweight marker for ImGui's payload and reference the static payload directly on drop

Closes #15

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@oltir06
oltir06 requested a review from MomdAli March 15, 2026 02:50
@MomdAli
MomdAli merged commit 74139bd into dev Jul 5, 2026
2 of 3 checks passed
@MomdAli
MomdAli deleted the bugfix/15-dragging-objects-not-working branch July 5, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants