summaryrefslogtreecommitdiffstats
path: root/src/box3d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/box3d.cpp')
-rw-r--r--src/box3d.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/box3d.cpp b/src/box3d.cpp
index 8f7c20c49..c3f6a1dbb 100644
--- a/src/box3d.cpp
+++ b/src/box3d.cpp
@@ -43,6 +43,16 @@ static void box3d_ref_changed(SPObject *old_ref, SPObject *ref, SPBox3D *box);
static gint counter = 0;
+#include "sp-factory.h"
+
+namespace {
+ SPObject* createBox3D() {
+ return new SPBox3D();
+ }
+
+ bool box3DRegistered = SPFactory::instance().registerObject("inkscape:box3d", createBox3D);
+}
+
G_DEFINE_TYPE(SPBox3D, box3d, G_TYPE_OBJECT);
static void box3d_class_init(SPBox3DClass *klass)