📋 Metadata
- Author: roaoao
- Date: 2016-09-23 05:00:12
- Type:
answer - Reply to: post_00348
💬 Content
aermartin:
a side note, tried to replace C with bl_context for the brush panel. didn’t do any difference for me. It’s working but if you click the brush icon to select another brush, it dissapears after that (the icon, sometimes it also collapses away)
Ok, try to add some extra code for the brush and color buttons: bl_context.set_context(C).
E.g. brush button:
bl_context.set_context(C); ps = paint_settings(bl_context); L.template_ID_preview(ps, 'brush', new='brush.add', rows=3, cols=8) if ps else None
This should fix collapse issue.
Hidden icon is a known issue. I don’t know how to fix it yet.