From ffd60baa4898efd1175dc551b9b1288820edfb61 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Tue, 11 Dec 2007 13:30:08 +0000 Subject: * The 'Create' functions should be called to factor up a new, otherwise empty, but with the Id and 1-to-1 child fields instantiated and randomized. * Added two shape constants that --- OpenSim/Framework/PrimitiveBaseShape.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs index a9da7c8..8081ee7 100644 --- a/OpenSim/Framework/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/PrimitiveBaseShape.cs @@ -129,6 +129,12 @@ namespace OpenSim.Framework TextureEntry = m_defaultTextureEntry; } + public static PrimitiveBaseShape Create() + { + PrimitiveBaseShape shape = new PrimitiveBaseShape(); + return shape; + } + //void returns need to change of course public virtual void GetMesh() { -- cgit v1.1