Blender Git Commit Log

Git Commits -> Revision 009bc8c

May 5, 2016, 00:38 (GMT)
Better way of handling face map widgets in new tagging system

* On widget group init, needed widgets are created and stored in a hash table (wmWidgetGroup.customdata).
* On widget group refresh, a new hash table is created and compared to the old one. For each widget needed we check if it's already existing in the old hash table, if so it's moved to the new one, if not it gets created.
* The remaining widgets in the old hash table get completely deleted, the old hash table gets deleted, the new one is stored (wmWidgetGroup.customdata) and becomes the old one on next refresh.

Solves all issues mentioned in rB003c181a640576b (and removes quite some ugly stuff).
Did minor cleanup in overlapping parts.

Commit Details:

Full Hash: 009bc8ce0ee946e32b1ecddd42703823f67f2841
Parent Commit: 7c9955f
Lines Changed: +101, -93

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2020