Leyart / aseprite

Automatically exported from code.google.com/p/aseprite
0 stars 0 forks source link

Certain menu commands are disabled after pasting a selection #275

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Select part of the sprite using the rectangular marquee tool.
2. Copy the selection (using Edit|Copy or by pressing Ctrl+C).
3. Paste previously copied rectangle (through Edit|Paste or Ctrl+V).

What is the expected output? What do you see instead?

Menu commands like Edit|Flip Vertical or Edit|Flip Horizontal or even 
Edit|Paste should be active. Instead, they appear as disabled. However, they 
can be still accessed through keyboard shortcuts.

What version of the product are you using? On what operating system?

Aseprite 0.9.5 on Windows 8 64-bit.

Original issue reported on code.google.com by olsze...@gmail.com on 17 Oct 2013 at 7:42

GoogleCodeExporter commented 9 years ago
Most items in Select are disabled as well.

I have looked a little bit into this problem, but not enough to say exactly 
what is causing it.  I suspect it's the result of a disconnect between being a 
Selection and MovingPixels.  For whatever reason when an image is pasted, it 
looks like there's a selection but it isn't really treated like one.

Original comment by DocHoncho@gmail.com on 29 Nov 2013 at 6:06

GoogleCodeExporter commented 9 years ago
This problem is because MovingPixelsState contains a PixelsMovement, which 
contains an UndoTransaction. This undo transaction lock the document in write 
mode in the whole transformation process of the pasted/moved image. It's quite 
hard to solve this. There are a "to do" item related with this which consist on 
adding undo to each transformation phase (e.g. you rotate, then scale, the 
move, there should be three different undo steps).

Original comment by davidcapello on 30 Nov 2013 at 9:49