[Bf-blender-cvs] [ed06d4a] alembic_basic_io: Fix NURBS having the wrong object type.

Kévin Dietrich noreply at git.blender.org
Thu Jun 30 01:20:02 CEST 2016


Commit: ed06d4a36c7e153734aff7cbccdcbc07d5ec5a6d
Author: Kévin Dietrich
Date:   Wed Jun 29 00:37:45 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rBed06d4a36c7e153734aff7cbccdcbc07d5ec5a6d

Fix NURBS having the wrong object type.

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

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

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

diff --git a/source/blender/alembic/intern/abc_nurbs.cc b/source/blender/alembic/intern/abc_nurbs.cc
index 32367fc..d6d8516 100644
--- a/source/blender/alembic/intern/abc_nurbs.cc
+++ b/source/blender/alembic/intern/abc_nurbs.cc
@@ -329,7 +329,7 @@ void AbcNurbsReader::readObjectData(Main *bmain, Scene *scene, float time)
 
 	BLI_strncpy(cu->id.name + 2, m_data_name.c_str(), m_data_name.size() + 1);
 
-	m_object = BKE_object_add(bmain, scene, OB_CURVE, m_object_name.c_str());
+	m_object = BKE_object_add(bmain, scene, OB_SURF, m_object_name.c_str());
 	m_object->data = cu;
 }




More information about the Bf-blender-cvs mailing list