From 91911eab841ed010b5c029a16ea4d1ee1d0d601c Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Tue, 3 Jul 2007 18:09:45 +0000 Subject: Use arrays to manage corners and faces of 3D boxes (bzr r3166) --- src/box3d-context.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/box3d-context.cpp') 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(); -- cgit v1.2.3