ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/gde/GCE/EditAction.pm
(Generate patch)

Comparing deliantra/gde/GCE/EditAction.pm (file contents):
Revision 1.7 by elmex, Sun Mar 12 12:18:55 2006 UTC vs.
Revision 1.8 by elmex, Sun Mar 12 13:40:34 2006 UTC

148 148
149 $::MAINWIN->set_pick ($arch) 149 $::MAINWIN->set_pick ($arch)
150 if @$cstack && $btn == 1; 150 if @$cstack && $btn == 1;
151 151
152 $::MAINWIN->update_attr_editor ($arch, sub { 152 $::MAINWIN->update_attr_editor ($arch, sub {
153 my ($arch) = @_; 153 $map->change_begin (ref $self);
154 print "UPD: $arch\n"; #d#
155
156 $map->change_stack ($x, $y, $cstack); 154 $map->change_stack ($x, $y, $cstack);
155 # XXX: Put this into a generic function!!! See also EditTools.pm
156 # FIXME: Fix the automatic update on undo here!
157 if (my $changeset = $map->change_end) {
158 splice @{ $map->{undo_stack} ||= [] },
159 $map->{undo_stack_pos}++, 1e6,
160 $changeset;
161 }
157 }); 162 });
158 163
159 $::MAINWIN->update_stack_view ($map, $x, $y); 164 $::MAINWIN->update_stack_view ($map, $x, $y);
160} 165}
161 166

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines