Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-03-22 01:54:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-03-22 01:54:30 +0300
commit4394217b96313613ea18e7a8830ebc07fedf29a5 (patch)
tree9c5139e48f4414a240db9e763360fae78c424a46 /source/blender/editors/space_view3d/drawobject.c
parent44bfe1437a91e1c8e7ae4b7d0553bf40e99f75a2 (diff)
when curves draw as derived meshes, check their face count rather then if the display list has faces.
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 5a495488afa..fabb4dd4bd7 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -2984,7 +2984,7 @@ static int drawCurveDerivedMesh(Scene *scene, View3D *v3d, RegionView3D *rv3d, B
return 1;
}
- if(dt>OB_WIRE && displist_has_faces(&cu->disp)!=0) {
+ if(dt>OB_WIRE && dm->getNumFaces(dm)) {
int glsl = draw_glsl_material(scene, ob, v3d, dt);
GPU_begin_object_materials(v3d, rv3d, scene, ob, glsl, NULL);