fix [#28883] redraw problems for particle mode's brush menu
authorCampbell Barton <ideasman42@gmail.com>
Wed, 12 Oct 2011 01:36:06 +0000 (01:36 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 12 Oct 2011 01:36:06 +0000 (01:36 +0000)
commit51cbfb396128bf800c0b53fd922a87dc4fe0ff79
tree7fe491544369b14301afb185e325850974a5ee4b
parent50a851b946bc7eebdf3d489786f1a18c9ec3d8f1
fix [#28883] redraw problems for particle mode's brush menu

The enum items for getting the brush tool (which the UI draws), would change after the 3D view first draws on exiting editmode.

Since the panel draws before the 3D view does, the UI had a glitch.

Fix by using psys_get_current() for the enum, rather then PE_get_current() which depends on an updated particle system.
source/blender/makesrna/intern/rna_sculpt_paint.c