diff options
author | Ton Roosendaal <ton@blender.org> | 2007-01-26 18:34:32 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2007-01-26 18:34:32 +0300 |
commit | 064bcdbb31873ef0cdcd9686f39951d43d7021ae (patch) | |
tree | d8cbbdf607edf2c1bb5ae2466e393f78534b1cbc /source/blender/src/previewrender.c | |
parent | ff78aacec8cd84aee1ceb2a090a10150f78da93a (diff) |
Bugfix #5827
Preview render in buttons was not refreshed when changes in a material
happened, without preview visible. (like editbuttons, active mat index).
Now on re-entering material buttons, a re-render happens in these cases.
Diffstat (limited to 'source/blender/src/previewrender.c')
-rw-r--r-- | source/blender/src/previewrender.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/previewrender.c b/source/blender/src/previewrender.c index 5113e261fa5..d54336807f9 100644 --- a/source/blender/src/previewrender.c +++ b/source/blender/src/previewrender.c @@ -206,6 +206,8 @@ void BIF_preview_changed(short id_code) addafterqueue(sa->win, RENDERPREVIEW, 1); } } + else if (sbuts->ri) + sbuts->ri->curtile= 0; /* ensure changes always result in re-render when context is restored */ } else if(sa->spacetype==SPACE_NODE) { SpaceNode *snode= sa->spacedata.first; |