diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-02-17 22:11:27 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-02-17 22:11:27 +0400 |
commit | 7cc954d7a7072a3aad59354021fde28d4273ac8b (patch) | |
tree | 8a61d75b7d1bf24b0b79dcc78542c7a9d2118333 /source/blender/editors/space_view3d/drawobject.c | |
parent | e7ce4f22fb57d732750d756bf57d6ebcd307db85 (diff) |
Make it so missing curve cache doesn't crash in sequencer preview
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 68ba0926f21..5d30b4e6299 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -6408,6 +6408,10 @@ static void drawObjectSelect(Scene *scene, View3D *v3d, ARegion *ar, Base *base, DerivedMesh *dm = ob->derivedFinal; bool has_faces = false; +#ifdef SEQUENCER_DAG_WORKAROUND + ensure_curve_cache(scene, ob); +#endif + if (dm) { has_faces = dm->getNumTessFaces(dm) > 0; } |