From 4eb504cb7962eaab90b708a417c580e1d00912eb Mon Sep 17 00:00:00 2001 From: John Haddon Date: Mon, 25 Nov 2013 17:49:08 +0000 Subject: [PATCH] Deprecated IECoreGL::MeshPrimitive::MeshPrimitive( vertIds ). For forwards compatibility, ToGLMeshConverter should be used in preference. --- include/IECoreGL/MeshPrimitive.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/IECoreGL/MeshPrimitive.h b/include/IECoreGL/MeshPrimitive.h index 50dcefbc26..5ceb8d7a77 100644 --- a/include/IECoreGL/MeshPrimitive.h +++ b/include/IECoreGL/MeshPrimitive.h @@ -51,6 +51,14 @@ class MeshPrimitive : public Primitive IE_CORE_DECLARERUNTIMETYPEDEXTENSION( IECoreGL::MeshPrimitive, MeshPrimitiveTypeId, Primitive ); /// Copies of all data are taken. + /// \deprecated. This constructor was being used to allow the MeshPrimitive to support + /// Vertex and Varying primitive variables in addPrimitiveVariable(), but it lacks the + /// information necessary to support Uniform primitive variables. In the future this + /// constructor will be removed - for forwards compatibility, use a ToGLMeshConverter + /// to create MeshPrimitives. + /// \todo Replace this with a simple MeshPrimitive( numTriangles ) constructor, remove all + /// the conversions from addPrimitiveVariable, and just rely on the work the ToGLMeshConverter + /// already does. MeshPrimitive( IECore::ConstIntVectorDataPtr vertIds ); virtual ~MeshPrimitive();