Page MenuHome

Fix T67460: Vertex painting: Sampling color opens empty options window in viewport
ClosedPublic

Authored by Sebastian Parborg (zeddb) on Jul 29 2019, 12:11 PM.

Details

Summary

The issue was that the redo panel area would call with region type HUD (not WINDOW).
Now we make sure that the redo panel always polls the operator in the original area type context.

Diff Detail

Repository
rB Blender

Event Timeline

Brecht Van Lommel (brecht) requested changes to this revision.Jul 30 2019, 12:32 AM

The redo panel should call poll functions with the region that the operator was executed in. If we have to work around it here, there's probably other operators that have the same problem.

This revision now requires changes to proceed.Jul 30 2019, 12:32 AM
Sebastian Parborg (zeddb) edited the summary of this revision. (Show Details)

I've updated the code with your input.

Brecht Van Lommel (brecht) added inline comments.
source/blender/editors/interface/interface_region_hud.c
80

End comment with dot

This revision is now accepted and ready to land.Jul 30 2019, 12:38 PM

This patch actually makes blender crash when the redo panel is invoked in the scripting workspace (when doing certain operations in the 3D view port).
So I'll put off merging this till I can find the cause.

Brecht Van Lommel (brecht) requested changes to this revision.Jul 30 2019, 12:53 PM
This revision now requires changes to proceed.Jul 30 2019, 12:53 PM

This should do it. It doesn't seem to crash any more on my end and the panels are displayed correctly.

This revision is now accepted and ready to land.Jul 30 2019, 3:07 PM