# HG changeset patch # User John W. Eaton # Date 1212676558 14400 # Node ID ab9fc4e3cdca2d4e8eb2aba095fa9be61a8472a8 # Parent b1823dfd6ec715eba44e9c21a6834523da98ea78 undo previous change diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,8 +1,6 @@ 2008-06-05 John W. Eaton - * graphics.cc (properties::update_normals): - Eliminate unnecessary use of references. - Style fixes. + * graphics.cc (properties::update_normals): Style fixes. * graphics.h.in: Style fixes. 2008-06-04 Shai Ayal diff --git a/src/graphics.cc b/src/graphics.cc --- a/src/graphics.cc +++ b/src/graphics.cc @@ -3453,9 +3453,9 @@ j3 = j+1; } - double nx = n(j,i,0); - double ny = n(j,i,1); - double nz = n(j,i,2); + double& nx = n(j,i,0); + double& ny = n(j,i,1); + double& nz = n(j,i,2); cross_product (x(j3,i)-x(j2,i), y(j+1,i2)-y(j,i2), z(j+1,i)-z(j,i), x(j2,i+1)-x(j2,i), y(j,i3)-y(j,i2), z(j,i+1)-z(i,j),