changeset 2467:dbdc50d9e0f8 octree-diff

Fixed operand order.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 25 Feb 2019 21:49:07 +0100
parents a1e751c08c56
children 27cc04bbda46
files cmd/octreediff/main.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cmd/octreediff/main.go	Mon Feb 25 18:21:33 2019 +0100
+++ b/cmd/octreediff/main.go	Mon Feb 25 21:49:07 2019 +0100
@@ -141,7 +141,7 @@
 		for i := range vs {
 			v := &vs[i]
 			if z, found := first.Value(v.X, v.Y); found {
-				nsf = append(nsf, octree.Vertex{v.X, v.Y, v.Z - z})
+				nsf = append(nsf, octree.Vertex{v.X, v.Y, z - v.Z})
 			}
 		}