diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2007-08-06 07:10:50 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2007-08-06 07:10:50 +0000 |
| commit | 04004c1cfa13910eceeb96e83a36d5b8259cce10 (patch) | |
| tree | 42e691ea9dae026bb34fdebf18c5dbbb3fa1e8d7 /src/box3d.cpp | |
| parent | Write/read perspectives to/from SVG; store ratios of the distances from corne... (diff) | |
| download | inkscape-04004c1cfa13910eceeb96e83a36d5b8259cce10.tar.gz inkscape-04004c1cfa13910eceeb96e83a36d5b8259cce10.zip | |
Convenience for debugging
(bzr r3389)
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); |
