Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
| Show First 20 Lines • Show All 643 Lines • ▼ Show 20 Lines | void DepsgraphNodeBuilder::build_object(int base_index, | ||||
| * Do it now because it's possible object data will affect | * Do it now because it's possible object data will affect | ||||
| * on object's level animation, for example in case of rebuilding | * on object's level animation, for example in case of rebuilding | ||||
| * pose for proxy. */ | * pose for proxy. */ | ||||
| build_animdata(&object->id); | build_animdata(&object->id); | ||||
| /* Particle systems. */ | /* Particle systems. */ | ||||
| if (object->particlesystem.first != nullptr) { | if (object->particlesystem.first != nullptr) { | ||||
| build_particle_systems(object, is_visible); | build_particle_systems(object, is_visible); | ||||
| } | } | ||||
| /* Force field Texture. */ | |||||
| if ((object->pd != nullptr) && (object->pd->forcefield == PFIELD_TEXTURE) && | |||||
JacquesLucke: Missing null check for `object->pd`. Same below. | |||||
| (object->pd->tex != nullptr)) { | |||||
| build_texture(object->pd->tex); | |||||
| } | |||||
| /* Proxy object to copy from. */ | /* Proxy object to copy from. */ | ||||
| build_object_proxy_from(object, is_visible); | build_object_proxy_from(object, is_visible); | ||||
| build_object_proxy_group(object, is_visible); | build_object_proxy_group(object, is_visible); | ||||
| /* Object dupligroup. */ | /* Object dupligroup. */ | ||||
| if (object->instance_collection != nullptr) { | if (object->instance_collection != nullptr) { | ||||
| build_object_instance_collection(object, is_visible); | build_object_instance_collection(object, is_visible); | ||||
| OperationNode *op_node = add_operation_node( | OperationNode *op_node = add_operation_node( | ||||
| &object->id, NodeType::DUPLI, OperationCode::DUPLI); | &object->id, NodeType::DUPLI, OperationCode::DUPLI); | ||||
| ▲ Show 20 Lines • Show All 1,278 Lines • Show Last 20 Lines | |||||
Missing null check for object->pd. Same below.