[Bf-blender-cvs] [14ac7094550] blender2.8: Eevee: Support for objects of type Curve, Surface and Text
Germano
noreply at git.blender.org
Thu Dec 14 15:23:07 CET 2017
Commit: 14ac709455065062134b21cf573fcfc99830da42
Author: Germano
Date: Thu Dec 14 12:22:55 2017 -0200
Branches: blender2.8
https://developer.blender.org/rB14ac709455065062134b21cf573fcfc99830da42
Eevee: Support for objects of type Curve, Surface and Text
===================================================================
M source/blender/draw/engines/eevee/eevee_engine.c
M source/blender/draw/engines/eevee/eevee_materials.c
===================================================================
diff --git a/source/blender/draw/engines/eevee/eevee_engine.c b/source/blender/draw/engines/eevee/eevee_engine.c
index a20b1afe3d4..6f6992a2256 100644
--- a/source/blender/draw/engines/eevee/eevee_engine.c
+++ b/source/blender/draw/engines/eevee/eevee_engine.c
@@ -113,7 +113,7 @@ static void eevee_cache_populate(void *vedata, Object *ob)
}
}
- if (ELEM(ob->type, OB_MESH)) {
+ if (ELEM(ob->type, OB_MESH, OB_CURVE, OB_SURF, OB_FONT)) {
if (!BKE_object_is_visible(ob)) {
return;
}
diff --git a/source/blender/draw/engines/eevee/eevee_materials.c b/source/blender/draw/engines/eevee/eevee_materials.c
index c25ab1e7859..e402fdb3306 100644
--- a/source/blender/draw/engines/eevee/eevee_materials.c
+++ b/source/blender/draw/engines/eevee/eevee_materials.c
@@ -1217,7 +1217,7 @@ void EEVEE_materials_cache_populate(EEVEE_Data *vedata, EEVEE_ViewLayerData *sld
const bool is_default_mode_shader = is_sculpt_mode;
/* First get materials for this mesh. */
- if (ELEM(ob->type, OB_MESH)) {
+ if (ELEM(ob->type, OB_MESH, OB_CURVE, OB_SURF, OB_FONT)) {
const int materials_len = MAX2(1, (is_sculpt_mode_draw ? 1 : ob->totcol));
struct DRWShadingGroup **shgrp_array = BLI_array_alloca(shgrp_array, materials_len);
More information about the Bf-blender-cvs
mailing list