-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Floating Selections for Pasting Operations #414
Comments
I can take a look at this one as I just experienced it myself, unless @tasaif is already all over this one. |
I am currently not working on this one |
Ok @JonasThomas ! You need to ask @chchwy to add you as a developer to the project to be assigned. |
Sorry, I didn't mean to assign this to myself. I've removed myself from this issue. |
Guys, I've been seeing the task assignment issue is more present than ever since we have more than one developer now. Aside from the lead programmer assigning you to a task, do you guys think we should have a "secondary" task manager acting as roadmap of sorts? I've used Trello https://trello.com in the past for other projects since it's free. And we did talk briefly about this a few months ago, about establishing a roadmap. Would you like to discuss this in the forum? |
Jose I thought you just hung out on the forum ;) |
One thing I find interesting if that functionality works perfectly at this point if you use F6 to duplicated a frame and then move it on the new frame.. It seems the issue are within the same frame.. Ahhhhhhhh... down the rabbit hole we go.... |
@chchwy @feeef @tasaif @Jose-Moreno |
@JonasThomas I've posted my response on your website. It says it require moderator approval and it looks like I can't go back to make changes to my response. Can you please move the discussion to the forum? |
Your Comments reposted here... Why isn’t this on the forum?** I think the level of detail I go into would probably be too much for most forum members. They just want it to work. (major feature enhancement sure) Following are my opinions on everything you’ve listed, please let me know if I missed anything or you’d like me to clarify anything. Consistent way to recreate the bugI think for the issue that you are working on it is important to scope the issue with care. I think that changes should be small and incremental. This specific bug should be resolved without including your proposed changes. In other words, the pull request should only have the changes required to fix that bug. The other changes should be in a separate issue/pull request. File newI think File new is really buggy in and of itself. It should be investigated fully on its own in a separate issue. The copy paste bug recreation steps should not include File new in them. Cut/copy/paste enabling/disablingI agree with you. I think this should have its own issue labeled as “enhancement”. Now in my mind when a paste if performed via a ctrl-v the copy should be placed where the mouse cursor resides (upper left corner)
I don’t agree with this. It is not default clipboard behavior. In closing, I’d like to say that each of the separated blocks above should theoretically have its own issue in the event that it is approved as opposed to one large pull request that contains all of the changes at once. ** one things not addressed is that we should think about clipboard should follow the selection box.. Ctri-V or Edit-Paste the new item gets the selection box. (fI don't think the user will notice a difference, but I think it will keep program logic simpler... |
I guess need to research this stying with markdown... I thought ** would post as bold or something. |
Guys, I think there is a developer-only part of the Pencil2D forum. But I'll have to ask @gordielachance how to add you there, in case you guys want to have passionate discussions about complex stuff 👍 |
I've moved the conversation to the forum, because it is a better conversation platform than github comments. http://www.pencil2d.org/forums/topic/copy-paste-within-a-frame-bugs-414/ |
I fixed a bug with the selection tool where you could have a selected area that had no size. It seems copy pasting in the current frame works well for me now. If you still get this issue, could you please indicate the exact steps to reproduce? Thanks! |
I'm hoping this issue if fixed once the latest merge requests are integrated with the current master. I find this to be a very annoying bug that really needs squashed. (I'm thinking that feeef has fixed this and I don't want to trip over what he's done.. If not, I'm willing to give it a go..) |
I'll test as soon as pr is complete so that I can build myself a new version. Looking forward to hitting hard on this annoying bug :) |
It doesn't seem possible to copy and paste something in a frame. You can copy paste onto the object itself because you can see when you paste that the image outline "grows" when you paste, but you can't move what you just pasted. |
Correction I managed to copy something if I moved the object away from the original spot before pasting but that's not very usable of course. |
[2019 Review] After re-reading all of the comments, I think more than a bug this is a very needed enhancement for the selection copy / paste behavior. If we could paste specifically to "floating" selections (similar to GIMP) instead of pasting directly to the canvas (we could always have a toggle in case someone prefers either method) the users would be allowed to move these selections to improve upon their interaction with the tools and their own drawings. The current workaround for this is to paste to a temporary keyframe or layer, move the selection however you want and then from that position paste it again to the correct layer and keyframe. This is obviously not ideal, and even more so when we consider each transformation is degrading the quality of the image. Regarding the "bug" part, at least now, the selection does not disappear IF you maintain the select tool enabled. Even if you switch frames and duplicate or create a new keyframe, you can paste to the existing selection anytime what is saved in the clipboard, so that's a step forward to improve such behavior for pasting to floating selections. |
Agreed, this is a very important enhancement. From an implementation perspective, what needs to happen is instead of pasting directly to the canvas, we make a new active selection, just like either the select or move tool (probably the move tool) does. Unfortunately right now the canvas painter, which is responsible for drawing the current view, tracks the selection rectangle (QRect) and the selection transformation (QTransform). I think Ideally it should store the selection rectangle as an untransformed QImage instead or in addition to the QRect, which would allow the copy and paste to easily be implemented by setting that QImage to the clipboard contents and then starting a selection transformation. Some useful sections of the code to look at:
|
Bitmap layer. When selecting a area within a frame and choosing cut or copy you e.g. don't get to move what you cut out because as soon as you paste the object frame disappears and what you pasted "integrates" into the picture again.
In vector layer copy paste seems to have issues as well.
The text was updated successfully, but these errors were encountered: