projects
/
potlatch2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adfd366
)
Allow simplify to work on areas now that the algorithm has been
author
Tom Hughes
<tom@compton.nu>
Wed, 24 Nov 2010 22:59:00 +0000
(22:59 +0000)
committer
Tom Hughes
<tom@compton.nu>
Wed, 24 Nov 2010 22:59:00 +0000
(22:59 +0000)
fixed to work when there are multiple nodes in the same place.
net/systemeD/potlatch2/tools/Simplify.as
patch
|
blob
|
history
diff --git
a/net/systemeD/potlatch2/tools/Simplify.as
b/net/systemeD/potlatch2/tools/Simplify.as
index 468923edc349523ec36e951d3bd860f2b0c711cd..386f9e1b9ebd4aa5a73738ecad02ccd7d93ecce3 100644
(file)
--- a/
net/systemeD/potlatch2/tools/Simplify.as
+++ b/
net/systemeD/potlatch2/tools/Simplify.as
@@
-10,7
+10,7
@@
package net.systemeD.potlatch2.tools {
private static const TOLERANCE:Number=0.00005;
public static function simplify(way:Way, map:Map, keepOffscreen:Boolean):void {
- if (way.length<3
|| way.isArea()
) { return; }
+ if (way.length<3) { return; }
var action:CompositeUndoableAction = new CompositeUndoableAction("Simplify");