Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_build.cc
| Show First 20 Lines • Show All 322 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (ViewLayer *, view_layer, &scene->view_layers) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| void DEG_add_collision_relations(DepsNodeHandle *handle, | void DEG_add_collision_relations(DepsNodeHandle *handle, | ||||
| Scene *scene, | Scene *scene, | ||||
| Object *object, | Object *object, | ||||
| Group *group, | Collection *collection, | ||||
| unsigned int modifier_type, | unsigned int modifier_type, | ||||
| DEG_CollobjFilterFunction fn, | DEG_CollobjFilterFunction fn, | ||||
| bool dupli, | bool dupli, | ||||
| const char *name) | const char *name) | ||||
| { | { | ||||
| unsigned int numcollobj; | unsigned int numcollobj; | ||||
| Object **collobjs = get_collisionobjects_ext(scene, object, group, &numcollobj, modifier_type, dupli); | Object **collobjs = get_collisionobjects_ext(scene, object, collection, &numcollobj, modifier_type, dupli); | ||||
| for (unsigned int i = 0; i < numcollobj; i++) { | for (unsigned int i = 0; i < numcollobj; i++) { | ||||
| Object *ob1 = collobjs[i]; | Object *ob1 = collobjs[i]; | ||||
| if (!fn || fn(ob1, modifiers_findByType(ob1, (ModifierType)modifier_type))) { | if (!fn || fn(ob1, modifiers_findByType(ob1, (ModifierType)modifier_type))) { | ||||
| DEG_add_object_relation(handle, ob1, DEG_OB_COMP_TRANSFORM, name); | DEG_add_object_relation(handle, ob1, DEG_OB_COMP_TRANSFORM, name); | ||||
| DEG_add_object_relation(handle, ob1, DEG_OB_COMP_GEOMETRY, name); | DEG_add_object_relation(handle, ob1, DEG_OB_COMP_GEOMETRY, name); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines | |||||