[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43751] trunk/blender/source/blender/ modifiers/intern/MOD_cloth.c: Fixed for cloth modifier when it' s applied after deformation modifier.

Sergey Sharybin sergey.vfx at gmail.com
Sun Jan 29 17:56:06 CET 2012


Revision: 43751
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43751
Author:   nazgul
Date:     2012-01-29 16:55:57 +0000 (Sun, 29 Jan 2012)
Log Message:
-----------
Fixed for cloth modifier when it's applied after deformation modifier.

Modified Paths:
--------------
    trunk/blender/source/blender/modifiers/intern/MOD_cloth.c

Modified: trunk/blender/source/blender/modifiers/intern/MOD_cloth.c
===================================================================
--- trunk/blender/source/blender/modifiers/intern/MOD_cloth.c	2012-01-29 12:00:04 UTC (rev 43750)
+++ trunk/blender/source/blender/modifiers/intern/MOD_cloth.c	2012-01-29 16:55:57 UTC (rev 43751)
@@ -84,7 +84,11 @@
 	}
 
 	dm = get_dm(ob, NULL, derivedData, NULL, 0);
+	if(dm == derivedData)
+		dm = CDDM_copy(dm);
 
+	CDDM_apply_vert_coords(dm, vertexCos);
+
 	clothModifier_do(clmd, md->scene, ob, dm, vertexCos);
 
 	if(result) {
@@ -92,8 +96,7 @@
 		result->release(result);
 	}
 
-	if(dm != derivedData)
-		dm->release(dm);
+	dm->release(dm);
 }
 
 static void updateDepgraph(



More information about the Bf-blender-cvs mailing list