Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/alembic/exporter/abc_writer_instance.cc
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | void ABCInstanceWriter::create_alembic_objects(const HierarchyContext *context) | ||||
| OObject abc_parent = args_.abc_parent; | OObject abc_parent = args_.abc_parent; | ||||
| if (!abc_parent.addChildInstance(original, args_.abc_name)) { | if (!abc_parent.addChildInstance(original, args_.abc_name)) { | ||||
| CLOG_WARN(&LOG, "unable to export %s as instance", args_.abc_path.c_str()); | CLOG_WARN(&LOG, "unable to export %s as instance", args_.abc_path.c_str()); | ||||
| return; | return; | ||||
| } | } | ||||
| CLOG_INFO(&LOG, 2, "exporting instance %s", args_.abc_path.c_str()); | CLOG_INFO(&LOG, 2, "exporting instance %s", args_.abc_path.c_str()); | ||||
| } | } | ||||
| void ABCInstanceWriter::ensure_custom_properties_exporter(const HierarchyContext & /*context*/) | |||||
| { | |||||
| /* Intentionally do nothing. Instances should not have their own custom properties. */ | |||||
| } | |||||
| Alembic::Abc::OCompoundProperty ABCInstanceWriter::abc_prop_for_custom_props() | |||||
| { | |||||
| return Alembic::Abc::OCompoundProperty(); | |||||
| } | |||||
| OObject ABCInstanceWriter::get_alembic_object() const | OObject ABCInstanceWriter::get_alembic_object() const | ||||
| { | { | ||||
| /* There is no OObject for an instance. */ | /* There is no OObject for an instance. */ | ||||
| BLI_assert(!"ABCInstanceWriter cannot return its Alembic OObject"); | BLI_assert(!"ABCInstanceWriter cannot return its Alembic OObject"); | ||||
| return OObject(); | return OObject(); | ||||
| } | } | ||||
| bool ABCInstanceWriter::is_supported(const HierarchyContext *context) const | bool ABCInstanceWriter::is_supported(const HierarchyContext *context) const | ||||
| Show All 10 Lines | |||||