diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-02-27 02:50:47 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-02-27 02:50:47 +0000 |
| commit | c5a8059ad6faf800fbb345472262848e6fd760ca (patch) | |
| tree | d1c70269865053ac35b47401043b8a1da318b10e /src/persp3d.cpp | |
| parent | enable entering 3D boxes as groups (diff) | |
| download | inkscape-c5a8059ad6faf800fbb345472262848e6fd760ca.tar.gz inkscape-c5a8059ad6faf800fbb345472262848e6fd760ca.zip | |
less arbitrary default perspective
(bzr r4875)
Diffstat (limited to 'src/persp3d.cpp')
| -rw-r--r-- | src/persp3d.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/persp3d.cpp b/src/persp3d.cpp index 4b594d754..76cbc1588 100644 --- a/src/persp3d.cpp +++ b/src/persp3d.cpp @@ -209,10 +209,10 @@ persp3d_create_xml_element (SPDocument *document, Persp3D *dup) {// if dup is gi repr = xml_doc->createElement("inkscape:perspective"); repr->setAttribute("sodipodi:type", "inkscape:persp3d"); - Proj::Pt2 proj_vp_x = Proj::Pt2 (-50.0, 600.0, 1.0); + Proj::Pt2 proj_vp_x = Proj::Pt2 (0.0, sp_document_height(document)/2, 1.0); Proj::Pt2 proj_vp_y = Proj::Pt2 ( 0.0,1000.0, 0.0); - Proj::Pt2 proj_vp_z = Proj::Pt2 (700.0, 600.0, 1.0); - Proj::Pt2 proj_origin = Proj::Pt2 (300.0, 400.0, 1.0); + Proj::Pt2 proj_vp_z = Proj::Pt2 (sp_document_width(document), sp_document_height(document)/2, 1.0); + Proj::Pt2 proj_origin = Proj::Pt2 (sp_document_width(document)/2, sp_document_height(document)/2, 1.0); gchar *str = NULL; str = proj_vp_x.coord_string(); |
