Skip to content

Commit

Permalink
load brushes on viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
mapmeld committed Mar 23, 2013
1 parent 075f4ca commit 06da42b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/scripts/myviewer.js
Expand Up @@ -570,9 +570,9 @@ function writePark(p){
poly[i] = at_pt; // [x, y]
}

if(promoted[ getPromotedId( parks[p] ) ].effect.indexOf("kansas") > -1){
if(parks[p].texture.indexOf("kansas") > -1){
// split off to do kansas rendering
var brush = promoted[ getPromotedId( parks[p] ) ].effect.split(":")[1];
var brush = parks[p].texture.split(":")[1];
if(brushes[brush]){
brushes[brush]( ctx, poly, "#2A2AA5", "#2A2AA5" );
}
Expand Down

0 comments on commit 06da42b

Please sign in to comment.