[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14370] trunk/blender/source/blender/src/ buttons_object.c: Cloth/ Collision modifier now gets add to the tail of the modifier stack as that is normal behaviour for all other modifiers , too.

Daniel Genrich daniel.genrich at gmx.net
Wed Apr 9 17:29:49 CEST 2008


Revision: 14370
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14370
Author:   genscher
Date:     2008-04-09 17:28:46 +0200 (Wed, 09 Apr 2008)

Log Message:
-----------
Cloth/Collision modifier now gets add to the tail of the modifier stack as that is normal behaviour for all other modifiers, too.

Modified Paths:
--------------
    trunk/blender/source/blender/src/buttons_object.c

Modified: trunk/blender/source/blender/src/buttons_object.c
===================================================================
--- trunk/blender/source/blender/src/buttons_object.c	2008-04-09 10:33:15 UTC (rev 14369)
+++ trunk/blender/source/blender/src/buttons_object.c	2008-04-09 15:28:46 UTC (rev 14370)
@@ -3303,7 +3303,7 @@
 		if(pd && (pd->deflect))
 		{
 			md = modifier_new ( eModifierType_Collision );
-			BLI_addhead ( &ob->modifiers, md );
+			BLI_addtail ( &ob->modifiers, md );
 			DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
 			allqueue(REDRAWBUTSEDIT, 0);
 			allqueue(REDRAWVIEW3D, 0);
@@ -5164,7 +5164,7 @@
 
 	if (!md) {
 		md = modifier_new(eModifierType_Cloth);
-		BLI_addhead(&ob->modifiers, md);
+		BLI_addtail(&ob->modifiers, md);
 		
 		DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
 		allqueue(REDRAWBUTSEDIT, 0);





More information about the Bf-blender-cvs mailing list