add missing modifier lookups


git-svn-id: https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons@4271 96b784f8-4ae3-dd11-aff7-0030488c597c
add button to initialize armature layers, since this isn't allowed on draw anymore.


git-svn-id: https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons@4272 96b784f8-4ae3-dd11-aff7-0030488c597c
minor code cleanup


git-svn-id: https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons@4273 96b784f8-4ae3-dd11-aff7-0030488c597c
Fix [#34253] UIList resize, resizes wrong list II/II

When using default UI_UL_list, one should always spully a custom ID, else collision inside an area are quite likely...

git-svn-id: https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons@4274 96b784f8-4ae3-dd11-aff7-0030488c597c
add check for 'None' textures


git-svn-id: https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons@4276 96b784f8-4ae3-dd11-aff7-0030488c597c
Bunch of bug fixes.

The biggest fixes relate to keeping ID data modification out of
draw methods.  This was breaking Rigify with the current API.

Secondary fix was to move widget meshes to match the bones, even
if the widget meshes already exist.  It's nice for when the user
is progressively tweaking the metarig.


git-svn-id: https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons@4277 96b784f8-4ae3-dd11-aff7-0030488c597c
Rigify bugfix: deleted WGT objects now get properly replaced on generation.

WGT objects were sticking around even when the user deleted them
since they were being used by the bones for visual appearance.  This
meant that if the user deleted the WGT objects in order for Rigify
to regenerate them the next time around, Rigify would fail.

Rigify now checks for this circumstance and handles it appropriately.


git-svn-id: https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons@4278 96b784f8-4ae3-dd11-aff7-0030488c597c
Rigify: the pre-built metarigs that appear in the add armature menu
are now dynamically pulled from python files in the metarigs
directory.  This makes adding new metarigs pretty painless.


git-svn-id: https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons@4279 96b784f8-4ae3-dd11-aff7-0030488c597c
Rigify: pep8 for metarig_menu.py


git-svn-id: https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons@4280 96b784f8-4ae3-dd11-aff7-0030488c597c
Rigify: improved rigify.utils.write_metarig()

It is now able to write out all relevant layer data.
Also, the script generated can now be directly run, for testing.


git-svn-id: https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons@4281 96b784f8-4ae3-dd11-aff7-0030488c597c