Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
| Show First 20 Lines • Show All 633 Lines • ▼ Show 20 Lines | void DepsgraphRelationBuilder::build_object(Base *base, Object *object) | ||||
| /* Object data. */ | /* Object data. */ | ||||
| build_object_data(object); | build_object_data(object); | ||||
| /* Particle systems. */ | /* Particle systems. */ | ||||
| if (object->particlesystem.first != NULL) { | if (object->particlesystem.first != NULL) { | ||||
| build_particle_systems(object); | build_particle_systems(object); | ||||
| } | } | ||||
| /* Proxy object to copy from. */ | /* Proxy object to copy from. */ | ||||
| if (object->proxy_from != NULL) { | if (object->proxy_from != NULL) { | ||||
| /* Object is linked here (comes from the library). */ | |||||
| build_object(NULL, object->proxy_from); | build_object(NULL, object->proxy_from); | ||||
| ComponentKey ob_transform_key(&object->proxy_from->id, NodeType::TRANSFORM); | ComponentKey ob_transform_key(&object->proxy_from->id, NodeType::TRANSFORM); | ||||
| ComponentKey proxy_transform_key(&object->id, NodeType::TRANSFORM); | ComponentKey proxy_transform_key(&object->id, NodeType::TRANSFORM); | ||||
| add_relation(ob_transform_key, proxy_transform_key, "Proxy Transform"); | add_relation(ob_transform_key, proxy_transform_key, "Proxy Transform"); | ||||
| } | } | ||||
| if (object->proxy_group != NULL) { | if (object->proxy_group != NULL && object->proxy_group != object->proxy) { | ||||
| /* Object is local here (local in .blend file, users interacts with it). */ | |||||
| build_object(NULL, object->proxy_group); | build_object(NULL, object->proxy_group); | ||||
| OperationKey proxy_group_eval_key( | OperationKey proxy_group_eval_key( | ||||
| &object->proxy_group->id, NodeType::TRANSFORM, OperationCode::TRANSFORM_EVAL); | &object->proxy_group->id, NodeType::TRANSFORM, OperationCode::TRANSFORM_EVAL); | ||||
| add_relation(proxy_group_eval_key, transform_eval_key, "Proxy Group Transform"); | add_relation(proxy_group_eval_key, transform_eval_key, "Proxy Group Transform"); | ||||
| } | } | ||||
| /* Object dupligroup. */ | /* Object dupligroup. */ | ||||
| if (object->instance_collection != NULL) { | if (object->instance_collection != NULL) { | ||||
| build_collection(NULL, object, object->instance_collection); | build_collection(NULL, object, object->instance_collection); | ||||
| ▲ Show 20 Lines • Show All 1,836 Lines • Show Last 20 Lines | |||||