From e9480165e16083b2b801c44e609fe490819b7fea Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 18 Sep 2006 19:07:17 +0000 Subject: [PATCH] fix NurbsCurve with new loader --- panda/src/parametrics/nurbsCurve.cxx | 13 +++++++++++++ panda/src/parametrics/nurbsCurve.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/panda/src/parametrics/nurbsCurve.cxx b/panda/src/parametrics/nurbsCurve.cxx index 95154aa483..e01a5a5a05 100644 --- a/panda/src/parametrics/nurbsCurve.cxx +++ b/panda/src/parametrics/nurbsCurve.cxx @@ -88,6 +88,19 @@ NurbsCurve:: ~NurbsCurve() { } +//////////////////////////////////////////////////////////////////// +// Function: NurbsCurve::make_copy +// Access: Public, Virtual +// Description: Returns a newly-allocated PandaNode that is a shallow +// copy of this one. It will be a different pointer, +// but its internal data may or may not be shared with +// that of the original PandaNode. No children will be +// copied. +//////////////////////////////////////////////////////////////////// +PandaNode *NurbsCurve:: +make_copy() const { + return new NurbsCurve(*this); +} //////////////////////////////////////////////////////////////////// // Function: NurbsCurve::set_order diff --git a/panda/src/parametrics/nurbsCurve.h b/panda/src/parametrics/nurbsCurve.h index f054d914ff..5406f51459 100644 --- a/panda/src/parametrics/nurbsCurve.h +++ b/panda/src/parametrics/nurbsCurve.h @@ -59,6 +59,8 @@ PUBLISHED: virtual ~NurbsCurve(); public: + virtual PandaNode *make_copy() const; + // We don't need to re-publish these, since they're all published // from NurbsCurveInterface. virtual void set_order(int order);