Fix for bug #26590, `Texture preview fails when path to custom brush
authorNicholas Bishop <nicholasbishop@gmail.com>
Wed, 27 Apr 2011 01:16:24 +0000 (01:16 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Wed, 27 Apr 2011 01:16:24 +0000 (01:16 +0000)
commit1860c0c56585a132e0e4ee0798158f0f598cf6f8
tree6a335a5fbdbce576a883e90da2baf02fc6eed1a7
parentf9cb8f80e702961d55ce2c6ad5c8a33b8b572ba2
Fix for bug #26590, `Texture preview fails when path to custom brush
icon is set'

* Main problem was calling BKE_icon_changed too much, blocked previews
  from updating
* Also fixed clearing the icon when it's not a valid image path

link: http://codereview.appspot.com/4356045/
source/blender/editors/render/render_preview.c