summaryrefslogtreecommitdiffstats
path: root/src/box3d-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-07-03 18:09:45 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-07-03 18:09:45 +0000
commit91911eab841ed010b5c029a16ea4d1ee1d0d601c (patch)
treed1d057eb525d84a1ff6a2c4c82605841142971c8 /src/box3d-context.cpp
parentr15736@tres: ted | 2007-07-02 21:11:39 -0700 (diff)
downloadinkscape-91911eab841ed010b5c029a16ea4d1ee1d0d601c.tar.gz
inkscape-91911eab841ed010b5c029a16ea4d1ee1d0d601c.zip
Use arrays to manage corners and faces of 3D boxes
(bzr r3166)
Diffstat (limited to 'src/box3d-context.cpp')
-rw-r--r--src/box3d-context.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/box3d-context.cpp b/src/box3d-context.cpp
index ead6486e5..a46783f4c 100644
--- a/src/box3d-context.cpp
+++ b/src/box3d-context.cpp
@@ -524,12 +524,12 @@ static void sp_3dbox_drag(SP3DBoxContext &rc, guint state)
/* The separate faces (created from rear to front) */
SP3DBox *box3d = SP_3DBOX(rc.item);
- box3d->face3.hook_path_to_3dbox();
- box3d->face4.hook_path_to_3dbox();
- box3d->face5.hook_path_to_3dbox();
- box3d->face6.hook_path_to_3dbox();
- box3d->face1.hook_path_to_3dbox();
- box3d->face2.hook_path_to_3dbox();
+ box3d->faces[2].hook_path_to_3dbox();
+ box3d->faces[3].hook_path_to_3dbox();
+ box3d->faces[4].hook_path_to_3dbox();
+ box3d->faces[5].hook_path_to_3dbox();
+ box3d->faces[0].hook_path_to_3dbox();
+ box3d->faces[1].hook_path_to_3dbox();
rc.item->updateRepr();