Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph.cc
| Show All 19 Lines | |||||
| #include "BKE_global.h" | #include "BKE_global.h" | ||||
| #include "BKE_idtype.h" | #include "BKE_idtype.h" | ||||
| #include "BKE_scene.h" | #include "BKE_scene.h" | ||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| #include "DEG_depsgraph_debug.h" | #include "DEG_depsgraph_debug.h" | ||||
| #include "intern/depsgraph_lineart.h" | |||||
| #include "intern/depsgraph_physics.h" | #include "intern/depsgraph_physics.h" | ||||
| #include "intern/depsgraph_registry.h" | #include "intern/depsgraph_registry.h" | ||||
| #include "intern/depsgraph_relation.h" | #include "intern/depsgraph_relation.h" | ||||
| #include "intern/depsgraph_update.h" | #include "intern/depsgraph_update.h" | ||||
| #include "intern/eval/deg_eval_copy_on_write.h" | #include "intern/eval/deg_eval_copy_on_write.h" | ||||
| #include "intern/node/deg_node.h" | #include "intern/node/deg_node.h" | ||||
| ▲ Show 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | void Depsgraph::clear_id_nodes() | ||||
| for (IDNode *id_node : id_nodes) { | for (IDNode *id_node : id_nodes) { | ||||
| delete id_node; | delete id_node; | ||||
| } | } | ||||
| /* Clear containers. */ | /* Clear containers. */ | ||||
| id_hash.clear(); | id_hash.clear(); | ||||
| id_nodes.clear(); | id_nodes.clear(); | ||||
| /* Clear physics relation caches. */ | /* Clear physics relation caches. */ | ||||
| clear_physics_relations(this); | clear_physics_relations(this); | ||||
| clear_lineart_relations(this); | |||||
| } | } | ||||
| Relation *Depsgraph::add_new_relation(Node *from, Node *to, const char *description, int flags) | Relation *Depsgraph::add_new_relation(Node *from, Node *to, const char *description, int flags) | ||||
| { | { | ||||
| Relation *rel = nullptr; | Relation *rel = nullptr; | ||||
| if (flags & RELATION_CHECK_BEFORE_ADD) { | if (flags & RELATION_CHECK_BEFORE_ADD) { | ||||
| rel = check_nodes_connected(from, to, description); | rel = check_nodes_connected(from, to, description); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines | |||||