[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43744] trunk/blender/source/blender/ blenkernel/intern/displist.c: Always assume isFinalCals is truth when applying constructive modifiers on curves

Sergey Sharybin sergey.vfx at gmail.com
Fri Jan 27 15:18:10 CET 2012


Revision: 43744
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43744
Author:   nazgul
Date:     2012-01-27 14:17:59 +0000 (Fri, 27 Jan 2012)
Log Message:
-----------
Always assume isFinalCals is truth when applying constructive modifiers on curves
for viewport display.

It saves plenty of memory when using subsurf modifier which result is getting
converted from CCGDM to CDDM without any benefit. It also syncs behavior of
modifiers with mesh.

Need to keep an eye on constructive modifiers when in edit mode.

Discovered this when was looking into #29973.

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/displist.c

Modified: trunk/blender/source/blender/blenkernel/intern/displist.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/displist.c	2012-01-27 13:58:32 UTC (rev 43743)
+++ trunk/blender/source/blender/blenkernel/intern/displist.c	2012-01-27 14:17:59 UTC (rev 43744)
@@ -833,6 +833,7 @@
 	int editmode = (!forRender && cu->editnurb);
 	DerivedMesh *dm= NULL, *ndm;
 	float (*vertCos)[3] = NULL;
+	int useCache = !forRender;
 
 	if(forRender) required_mode = eModifierMode_Render;
 	else required_mode = eModifierMode_Realtime;
@@ -911,7 +912,7 @@
 				vertCos= NULL;
 			}
 
-			ndm = mti->applyModifier(md, ob, dm, forRender, editmode);
+			ndm = mti->applyModifier(md, ob, dm, forRender, useCache);
 
 			if (ndm) {
 				/* Modifier returned a new derived mesh */



More information about the Bf-blender-cvs mailing list