Alembic: Removed AbcTransformWriter::m_parent
It was set, but never read anywhere.
This commit is contained in:
@@ -452,7 +452,6 @@ void AbcExporter::createTransformWriter(Object *ob, Object *parent, Object *dupl
|
|||||||
|
|
||||||
if (parent_xform) {
|
if (parent_xform) {
|
||||||
m_xforms[name] = new AbcTransformWriter(ob, parent_xform->alembicXform(), parent_xform, m_trans_sampling_index, m_settings);
|
m_xforms[name] = new AbcTransformWriter(ob, parent_xform->alembicXform(), parent_xform, m_trans_sampling_index, m_settings);
|
||||||
m_xforms[name]->setParent(parent);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
m_xforms[name] = new AbcTransformWriter(ob, m_writer->archive().getTop(), NULL, m_trans_sampling_index, m_settings);
|
m_xforms[name] = new AbcTransformWriter(ob, m_writer->archive().getTop(), NULL, m_trans_sampling_index, m_settings);
|
||||||
|
@@ -64,7 +64,6 @@ AbcTransformWriter::AbcTransformWriter(Object *ob,
|
|||||||
: AbcObjectWriter(NULL, ob, time_sampling, settings, parent)
|
: AbcObjectWriter(NULL, ob, time_sampling, settings, parent)
|
||||||
{
|
{
|
||||||
m_is_animated = hasAnimation(m_object);
|
m_is_animated = hasAnimation(m_object);
|
||||||
m_parent = NULL;
|
|
||||||
|
|
||||||
if (!m_is_animated) {
|
if (!m_is_animated) {
|
||||||
time_sampling = 0;
|
time_sampling = 0;
|
||||||
|
@@ -37,7 +37,6 @@ class AbcTransformWriter : public AbcObjectWriter {
|
|||||||
Alembic::Abc::M44d m_matrix;
|
Alembic::Abc::M44d m_matrix;
|
||||||
|
|
||||||
bool m_is_animated;
|
bool m_is_animated;
|
||||||
Object *m_parent;
|
|
||||||
bool m_visible;
|
bool m_visible;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -49,7 +48,6 @@ public:
|
|||||||
|
|
||||||
Alembic::AbcGeom::OXform &alembicXform() { return m_xform;}
|
Alembic::AbcGeom::OXform &alembicXform() { return m_xform;}
|
||||||
virtual Imath::Box3d bounds();
|
virtual Imath::Box3d bounds();
|
||||||
void setParent(Object *p) { m_parent = p; }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void do_write();
|
virtual void do_write();
|
||||||
|
Reference in New Issue
Block a user