diff options
author | Thomas Dinges <blender@dingto.org> | 2013-01-29 18:52:26 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-01-29 18:52:26 +0400 |
commit | d18fca88b9b292631b02fe98055372d4746866c3 (patch) | |
tree | 7807b5a706b8ad049929e9dc9c9e98ebb25d1d6e /source/blender/makesrna/intern/rna_material.c | |
parent | 6d2f104884f706b0358a9f6393e32cdc0430adac (diff) |
Preview Render:
* Changing Material Preview type (Sphere, Monkey...) should not trigger ND_SHADING_DRAW. Caused Cycles 3D View render to re-start.
It now only triggers an ND_SHADER update, which will be handled inside the Properties Editor Listener and executes a Preview Re-Render.
Diffstat (limited to 'source/blender/makesrna/intern/rna_material.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_material.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c index 1221b84372c..35173c290de 100644 --- a/source/blender/makesrna/intern/rna_material.c +++ b/source/blender/makesrna/intern/rna_material.c @@ -114,7 +114,7 @@ static void rna_Material_update_previews(Main *bmain, Scene *scene, PointerRNA * if (ma->nodetree) ntreeClearPreview(ma->nodetree); - rna_Material_update(bmain, scene, ptr); + WM_main_add_notifier(NC_MATERIAL | ND_SHADING, ma); } |