Page MenuHome

Fix T93169: Weightpaint falloff popover drawn twice
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Nov 18 2021, 10:48 AM.

Details

Summary

This came with rBf8a0e102cf5e: Weightpaint Gradient tool: expose falloff to the UI.

The panel was meant specifically for the gradient tool, but since it was
given the ".weighpaint" context, it would also draw as part of generic
header toolsettings drawing.

Now remove this context on purpose and only draw this specifically from
the gradient tools ToolDef.

Also add an extra check in poll to make sure we only draw this for the
right tool.

Diff Detail

Repository
rB Blender

Event Timeline

The poll function shouldn't need to access the tool's idname, otherwise this seems fine.

This revision was not accepted when it landed; it landed in state Needs Review.Dec 13 2021, 9:58 AM
This revision was automatically updated to reflect the committed changes.