Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/common/intern/abstract_hierarchy_iterator.cc
| Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Lines | void AbstractHierarchyIterator::debug_print_export_graph(const ExportGraph &graph) const | ||||
| } | } | ||||
| printf(" (Total graph size: %zu objects)\n", total_graph_size); | printf(" (Total graph size: %zu objects)\n", total_graph_size); | ||||
| } | } | ||||
| void AbstractHierarchyIterator::export_graph_construct() | void AbstractHierarchyIterator::export_graph_construct() | ||||
| { | { | ||||
| Scene *scene = DEG_get_evaluated_scene(depsgraph_); | Scene *scene = DEG_get_evaluated_scene(depsgraph_); | ||||
| /* Add a "null" root node with no children immediately for the case where the top-most node in | |||||
| * the scene is not being exported and a root node otherwise wouldn't get added. */ | |||||
| ExportGraph::key_type root_node_id = ObjectIdentifier::for_real_object(nullptr); | |||||
| export_graph_[root_node_id] = ExportChildren(); | |||||
| DEG_OBJECT_ITER_BEGIN (depsgraph_, | DEG_OBJECT_ITER_BEGIN (depsgraph_, | ||||
| object, | object, | ||||
| DEG_ITER_OBJECT_FLAG_LINKED_DIRECTLY | | DEG_ITER_OBJECT_FLAG_LINKED_DIRECTLY | | ||||
| DEG_ITER_OBJECT_FLAG_LINKED_VIA_SET) { | DEG_ITER_OBJECT_FLAG_LINKED_VIA_SET) { | ||||
| /* Non-instanced objects always have their object-parent as export-parent. */ | /* Non-instanced objects always have their object-parent as export-parent. */ | ||||
| const bool weak_export = mark_as_weak_export(object); | const bool weak_export = mark_as_weak_export(object); | ||||
| visit_object(object, object->parent, weak_export); | visit_object(object, object->parent, weak_export); | ||||
| ▲ Show 20 Lines • Show All 469 Lines • Show Last 20 Lines | |||||