From 04004c1cfa13910eceeb96e83a36d5b8259cce10 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Mon, 6 Aug 2007 07:10:50 +0000 Subject: Convenience for debugging (bzr r3389) --- src/box3d.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/box3d.cpp') diff --git a/src/box3d.cpp b/src/box3d.cpp index 44b2c9bbe..fbf7fb15d 100644 --- a/src/box3d.cpp +++ b/src/box3d.cpp @@ -42,6 +42,8 @@ static gchar * sp_3dbox_get_perspective_string (SP3DBox *box); static SPGroupClass *parent_class; +static gint counter = 0; + GType sp_3dbox_get_type(void) { @@ -99,6 +101,8 @@ sp_3dbox_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr SP3DBox *box = SP_3DBOX (object); + box->my_counter = counter++; + if (repr->attribute ("inkscape:perspective") == NULL) { // we are creating a new box; link it to the current perspective Box3D::Perspective3D::current_perspective->add_box (box); -- cgit v1.2.3