Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / object / object_modifier.c
index b0047d5db8edf4e27269f5def744bd18669eeaae..ec80ec98b21a99bd90dbefec26b61508ed8a2255 100644 (file)
@@ -172,7 +172,7 @@ ModifierData *ED_object_modifier_add(ReportList *reports, Main *bmain, Scene *sc
                }
                else if (type == eModifierType_Collision) {
                        if (!ob->pd)
-                               ob->pd = object_add_collision_fields(0);
+                               ob->pd = BKE_partdeflect_new(0);
 
                        ob->pd->deflect = 1;
                }