diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-05-13 16:24:43 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-05-13 16:24:43 +0300 |
commit | 3ad962d0698f656db537d9ab46789a153d84e12a (patch) | |
tree | dc241c35d5041436681921eb1b978f6001c635ad /source/blender/blenkernel | |
parent | b03b8c3576bb1ebc49eb26155ab2c4a9857557aa (diff) |
Depsgraph: Use for_render flag for curves from depsgraph
Fixes issue with Eevee always using viewport curve resolution.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/object_update.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/object_update.c b/source/blender/blenkernel/intern/object_update.c index 183bc968897..77941e7d607 100644 --- a/source/blender/blenkernel/intern/object_update.c +++ b/source/blender/blenkernel/intern/object_update.c @@ -202,9 +202,11 @@ void BKE_object_handle_data_update(Depsgraph *depsgraph, Scene *scene, Object *o case OB_CURVE: case OB_SURF: - case OB_FONT: - BKE_displist_make_curveTypes(depsgraph, scene, ob, false, false, NULL); + case OB_FONT: { + bool for_render = (DEG_get_mode(depsgraph) == DAG_EVAL_RENDER); + BKE_displist_make_curveTypes(depsgraph, scene, ob, for_render, false, NULL); break; + } case OB_LATTICE: BKE_lattice_modifiers_calc(depsgraph, scene, ob); |