[Bf-blender-cvs] [54102ab36e] master: Alembic: fix naming of imported transforms.

Kévin Dietrich noreply at git.blender.org
Tue Feb 14 08:15:17 CET 2017


Commit: 54102ab36eba24977c3a7fa373b95df51e50c123
Author: Kévin Dietrich
Date:   Tue Feb 14 07:59:27 2017 +0100
Branches: master
https://developer.blender.org/rB54102ab36eba24977c3a7fa373b95df51e50c123

Alembic: fix naming of imported transforms.

When importing an Alembic file with grouped transforms, it would badly name the transforms, taking the name of the parent instead of its own.

Patch by @maxime.robinot

Differential Revision: https://developer.blender.org/D2507

===================================================================

M	source/blender/alembic/intern/abc_transform.cc

===================================================================

diff --git a/source/blender/alembic/intern/abc_transform.cc b/source/blender/alembic/intern/abc_transform.cc
index e2fc7674c4..368a811bb2 100644
--- a/source/blender/alembic/intern/abc_transform.cc
+++ b/source/blender/alembic/intern/abc_transform.cc
@@ -146,6 +146,6 @@ bool AbcEmptyReader::valid() const
 
 void AbcEmptyReader::readObjectData(Main *bmain, float /*time*/)
 {
-	m_object = BKE_object_add_only_object(bmain, OB_EMPTY, m_object_name.c_str());
+	m_object = BKE_object_add_only_object(bmain, OB_EMPTY, m_data_name.c_str());
 	m_object->data = NULL;
 }




More information about the Bf-blender-cvs mailing list