diff options
Diffstat (limited to 'src/box3d.cpp')
| -rw-r--r-- | src/box3d.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |
