Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/common/intern/abstract_hierarchy_iterator.cc
- This file was moved from source/blender/io/usd/intern/abstract_hierarchy_iterator.cc.
| Show All 10 Lines | |||||
| * | * | ||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| * | * | ||||
| * The Original Code is Copyright (C) 2019 Blender Foundation. | * The Original Code is Copyright (C) 2019 Blender Foundation. | ||||
| * All rights reserved. | * All rights reserved. | ||||
| */ | */ | ||||
| #include "abstract_hierarchy_iterator.h" | #include "IO_abstract_hierarchy_iterator.h" | ||||
| #include <iostream> | #include <iostream> | ||||
| #include <limits.h> | #include <limits.h> | ||||
| #include <sstream> | #include <sstream> | ||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include <string> | #include <string> | ||||
| extern "C" { | extern "C" { | ||||
| Show All 10 Lines | |||||
| #include "DNA_layer_types.h" | #include "DNA_layer_types.h" | ||||
| #include "DNA_modifier_types.h" | #include "DNA_modifier_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_particle_types.h" | #include "DNA_particle_types.h" | ||||
| #include "DEG_depsgraph_query.h" | #include "DEG_depsgraph_query.h" | ||||
| } | } | ||||
| namespace USD { | namespace blender { | ||||
| namespace io { | |||||
| const HierarchyContext *HierarchyContext::root() | const HierarchyContext *HierarchyContext::root() | ||||
| { | { | ||||
| return nullptr; | return nullptr; | ||||
| } | } | ||||
| bool HierarchyContext::operator<(const HierarchyContext &other) const | bool HierarchyContext::operator<(const HierarchyContext &other) const | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 591 Lines • ▼ Show 20 Lines | bool AbstractHierarchyIterator::mark_as_weak_export(const Object * /*object*/) const | ||||
| return false; | return false; | ||||
| } | } | ||||
| bool AbstractHierarchyIterator::should_visit_dupli_object(const DupliObject *dupli_object) const | bool AbstractHierarchyIterator::should_visit_dupli_object(const DupliObject *dupli_object) const | ||||
| { | { | ||||
| // Removing dupli_object->no_draw hides things like custom bone shapes. | // Removing dupli_object->no_draw hides things like custom bone shapes. | ||||
| return !dupli_object->no_draw; | return !dupli_object->no_draw; | ||||
| } | } | ||||
| } // namespace USD | } // namespace io | ||||
| } // namespace blender | |||||