diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2007-08-06 07:20:23 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2007-08-06 07:20:23 +0000 |
| commit | d01e7d7d15cfcc0b603eecc6a0d0b925f00ee003 (patch) | |
| tree | c2a24485c71bc11cd194266d429f13f7313f6297 /src/perspective3d.h | |
| parent | Convenience for debugging (diff) | |
| download | inkscape-d01e7d7d15cfcc0b603eecc6a0d0b925f00ee003.tar.gz inkscape-d01e7d7d15cfcc0b603eecc6a0d0b925f00ee003.zip | |
Workaround for some segfaults: Store perspectives globally instead of in each desktop (this should probably be reverted later on)
(bzr r3390)
Diffstat (limited to 'src/perspective3d.h')
| -rw-r--r-- | src/perspective3d.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/perspective3d.h b/src/perspective3d.h index 4211c7b3b..43b0ca3d3 100644 --- a/src/perspective3d.h +++ b/src/perspective3d.h @@ -41,10 +41,13 @@ public: static gint counter; // for testing only gint my_counter; // for testing only - static void print_debugging_info(); - static Perspective3D * current_perspective; // should current_perspective be moved to desktop.h? + static GSList * perspectives; // All existing 3D perspectives + static void add_perspective (Box3D::Perspective3D * const persp); + static void remove_perspective (Box3D::Perspective3D * const persp); + static Box3D::Perspective3D * find_perspective (Box3D::Perspective3D * const persp); // find an existing perspective whose VPs are equal to those of persp - SPDesktop * desktop; // we need to store the perspective's desktop to be able to access it in the destructor + static void print_debugging_info(); + static Perspective3D * current_perspective; private: VanishingPoint *vp_x; |
