[Bf-blender-cvs] [a8b3abc] master: Remove direct lattice modifiers calc from the drawing code

Sergey Sharybin noreply at git.blender.org
Mon Jan 13 11:33:53 CET 2014


Commit: a8b3abc7fc48c66573c593578c47688d98c1a21a
Author: Sergey Sharybin
Date:   Mon Jan 13 16:29:07 2014 +0600
https://developer.blender.org/rBa8b3abc7fc48c66573c593578c47688d98c1a21a

Remove direct lattice modifiers calc from the drawing code

Same as mballs and curves it was only to work around DAG stupidness
which hopefully was fixed in one of the previous commits.

>From quick tests everything works fine, if something is broken now
poke me to find a proper solution.

===================================================================

M	source/blender/editors/space_view3d/drawobject.c

===================================================================

diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 52fdb6f..2fcad55 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -1901,9 +1901,6 @@ static void drawlattice(Scene *scene, View3D *v3d, Object *ob)
 	int actdef_wcol = 0;
 	const bool is_edit = (lt->editlatt != NULL);
 
-	/* now we default make displist, this will modifiers work for non animated case */
-	if (ELEM(NULL, ob->curve_cache, ob->curve_cache->disp.first))
-		BKE_lattice_modifiers_calc(scene, ob);
 	dl = BKE_displist_find(&ob->curve_cache->disp, DL_VERTS);
 	
 	if (is_edit) {




More information about the Bf-blender-cvs mailing list