1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Changeset 5906

Show
Ignore:
Timestamp:
03/07/13 05:00:52 (14 months ago)
Author:
azhrei_fje
Message:

loading a campaign would delete straight lines made with the drawing tools; this fixes that problem

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • maptool/trunk/src/net/rptools/maptool/model/Zone.java

    r5855 r5906  
    12831283                                continue; 
    12841284                        } 
    1285                         // Does drawable cover area?  If not, get rid of it. 
    1286                         if (drawnArea.isEmpty()) { 
    1287                                 drawnIter.remove(); 
    1288                                 continue; 
    1289                         } 
     1285                        // The following is over-zealous optimization. Lines (1-dimensional) should be kept. 
     1286                        // (Does drawable cover area?  If not, get rid of it.) 
     1287                        // if (drawnArea.isEmpty()) { 
     1288                        //      drawnIter.remove(); 
     1289                        //      continue; 
     1290                        // } 
    12901291                        //              if (GraphicsUtil.contains(area, drawnArea)) {  // Too expensive 
    12911292                        if (area.contains(drawnArea.getBounds())) { // Not as accurate, but faster