Page MenuHome

Fix color drag and drop in the image editor
AbandonedPublic

Authored by Robert Guetzkow (rjg) on Apr 7 2020, 10:44 PM.

Details

Summary

This patch fixes T72476 by removing the redundant init of the undo. Additionally the paint_2d_bucket_fill() has been modified to avoid dereferencing of a NULL pointer.

Diff Detail

Repository
rB Blender
Branch
2020-04-07-fix-color-drag-n-drop (branched from master)
Build Status
Buildable 7499
Build 7499: arc lint + arc unit

Event Timeline

The fix works for me and seems reasonable. However, I don't know the undo code much either.

source/blender/editors/sculpt_paint/paint_image.c
1308

wm is unused.

source/blender/editors/sculpt_paint/paint_image.c
1308

Well spotted, you're right.

  • Remove unused variable
Robert Guetzkow (rjg) marked an inline comment as done.Apr 21 2020, 10:39 PM

This change was already committed by @Campbell Barton (campbellbarton) before the revision was marked as accepted.