Changeset 549:f868a8592432


Ignore:
Timestamp:
Sep 7, 2013, 7:48:55 PM (7 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
rebase_source:
c18bba82175fb5a6a79a795eafc6a2ede10ce118
Message:

Less leaky terrain movement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/area_editor.py

    r546 r549  
    878878        data = self.level.lookup[obj]
    879879        args = data['args']
     880        old_coords = list(args[0])
    880881        param_defs = obj.requires()[1:]  # chop off name
    881882        for i, (_key, key_type) in enumerate(param_defs):
     
    883884                break
    884885            if key_type == "polygon (convex)":
    885                 self._update_pos(obj, new_pos)
     886                new_outline = self.level.translate_poly(
     887                    args[i], old_coords, new_coords)
     888                obj.update_image(new_outline)
    886889        self.invalidate()
    887890
Note: See TracChangeset for help on using the changeset viewer.