Blender Git Loki

Git Commits -> Revision 8f97f3e

Revision 8f97f3e by Sergey Sharybin (master)
February 17, 2012, 16:06 (GMT)
Fix #25649: Image editor paint icon missing until enter weight paint

Issue was caused by starting Icon Preview render job from two places:
- Texture buttons for small icon preview
- Properties panel in image editor for large icon of texture

This preview job is starting in suspended mode and if new instance of the same job is
starting, suspended job will be totally stopped. This is normally for cases when you're
changing different settings -- in this case you'd wouldn't want re-render be triggered
on every slide change.
But what we've have with brush preview is that two instances of this job were creating for
large and small icon separately, but because of described policy only one icon was rendered.

If suspended job is getting to be stopped, check if it was started for the same icon
resolution and if not, that resolution will be also rendered in new job.
So it'll be still minimal re-rendering happens, but in cases when job was started from
two places for different icon sizes it'll work just fine.

Commit Details:

Full Hash: 8f97f3ed2961dcd03ca3d5aeb314cfdf2d0dc58e
SVN Revision: 44192
Parent Commit: 17f6f7e
Lines Changed: +116, -31

6 Modified Paths:

/source/blender/editors/interface/interface_icons.c (+18, -13) (Diff)
/source/blender/editors/interface/interface_layout.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+3, -1) (Diff)
/source/blender/editors/render/render_preview.c (+87, -16) (Diff)
/source/blender/editors/space_image/space_image.c (+6, -0) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021