diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-03-21 18:49:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-03-21 18:51:56 +0300 |
commit | 6939523a152891153a1eebbad6e730e7a43c6f08 (patch) | |
tree | 7dcf3452c15fa22ec10e33f16a0a6959bdc98542 /source | |
parent | a6914d8f33dc7937845ddb27e44b52d6fe8bece1 (diff) |
Fix T54203: crash changing engine w/ project-paint
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/render/render_update.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/render/render_update.c b/source/blender/editors/render/render_update.c index 7b2fcc15649..4d006028245 100644 --- a/source/blender/editors/render/render_update.c +++ b/source/blender/editors/render/render_update.c @@ -538,9 +538,11 @@ static void scene_changed(Main *bmain, Scene *scene) if (has_texture_mode) { for (ob = bmain->object.first; ob; ob = ob->id.next) { - BKE_texpaint_slots_refresh_object(scene, ob); - BKE_paint_proj_mesh_data_check(scene, ob, NULL, NULL, NULL, NULL); - GPU_drawobject_free(ob->derivedFinal); + if (ob->type == OB_MESH) { + BKE_texpaint_slots_refresh_object(scene, ob); + BKE_paint_proj_mesh_data_check(scene, ob, NULL, NULL, NULL, NULL); + GPU_drawobject_free(ob->derivedFinal); + } } } } |