Blender Git Commit Log

Git Commits -> Revision 81ac0bf

Revision 81ac0bf by Julian Eisel (master)
February 18, 2021, 16:17 (GMT)
Fix failing "Edit Source" (asserts) while number slider was visible

E.g. steps to reproduce:
* Enter Vertex Paint mode
* In the tool settings, right-click > "Edit Source"

When creating a number slider via `layout.prop(..., slider=True)`, the UI code
would reallocate the number button to be a number-slider button. That's because
we now actually have different button data-structures for these (see
e6f0b60c2e911). The edit source code stored data based on the button pointers,
which didn't get updated after changing the type. The fix just adds this
updating.

Commit Details:

Full Hash: 81ac0bf759d34e7de921784250d82540cb218718
Parent Commit: afa5da9
Lines Changed: +17, -0

3 Modified Paths:

/source/blender/editors/include/UI_interface.h (+1, -0) (Diff)
/source/blender/editors/interface/interface.c (+3, -0) (Diff)
/source/blender/editors/interface/interface_ops.c (+13, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021