Depsgraph: Use for_render flag for curves from depsgraph
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 13 May 2019 13:24:43 +0000 (15:24 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 13 May 2019 13:24:43 +0000 (15:24 +0200)
Fixes issue with Eevee always using viewport curve resolution.

source/blender/blenkernel/intern/object_update.c

index 183bc968897db691c4fec6f6daad786e90f9659d..77941e7d60711602207937fdd11ee9735b1d64e4 100644 (file)
@@ -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);