[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36228] trunk/blender/source/blender/ blenkernel/intern/object.c: Fix for [#27038] Bugs when linking particles/ collision/softbody modifiers

Janne Karhu jhkarh at gmail.com
Tue Apr 19 18:30:56 CEST 2011


Revision: 36228
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36228
Author:   jhk
Date:     2011-04-19 16:30:55 +0000 (Tue, 19 Apr 2011)
Log Message:
-----------
Fix for [#27038] Bugs when linking particles/collision/softbody modifiers
* Collision modifiers are disabled here by intention, but particles and softbody were copied the wrong way over :)
* On a further note I don't really get this whole "link modifiers" thing as it just copies the modifiers. As modifiers aren't ID blocks there's no sense in calling this linking!
* Secondly I don't think particles, smoke etc should be considered as modifiers here at all, meaning they shouldn't be linked/copied. These "modifiers" only read the mesh data at a certain location of the stack, but don't actually modify the mesh in any way (more info here http://wiki.blender.org/index.php/User:Jhk#Modifier_Stack_proposal).

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

Modified: trunk/blender/source/blender/blenkernel/intern/object.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/object.c	2011-04-19 15:15:50 UTC (rev 36227)
+++ trunk/blender/source/blender/blenkernel/intern/object.c	2011-04-19 16:30:55 UTC (rev 36228)
@@ -208,8 +208,8 @@
 		BLI_addtail(&ob->modifiers, nmd);
 	}
 
-	copy_object_particlesystems(from, ob);
-	copy_object_softbody(from, ob);
+	copy_object_particlesystems(ob, from);
+	copy_object_softbody(ob, from);
 
 	// TODO: smoke?, cloth?
 }




More information about the Bf-blender-cvs mailing list