Skip to content
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

Add new point to Polyline or Poligon object. #157

Closed
NinjaFighter opened this issue Feb 13, 2012 · 3 comments
Closed

Add new point to Polyline or Poligon object. #157

NinjaFighter opened this issue Feb 13, 2012 · 3 comments

Comments

@NinjaFighter
Copy link

I cannot figure how to add points to polyline or poligon objects. (is it possible?)
Could be great if I could do a left click, over the line, and selecting an "Add a New Point" option.
Nowadays, I open the TMX file with notepad++ and add points manually when I need that.

@bjorn
Copy link
Member

bjorn commented Feb 13, 2012

Currently it's only possible by selecting at least two neighboring points and choosing "split segments" from the right-click menu.

@NinjaFighter
Copy link
Author

Thanks, I understand now.
I think could be great, if I can select two points only clicking the line, but it is a fairly trivial detail.

ketanhwr added a commit to ketanhwr/tiled that referenced this issue Aug 6, 2017
Extending can be started from both first point and last point. Escape and Delete Key can be used to cancel the extending.
bjorn pushed a commit that referenced this issue Jan 16, 2018
Extending can be done by right-clicking the nodes on either end of a polyline.

Implementation finished by @bjorn:
* Fixed new polylines being drawn backwards after extending first
* Fixed extending polyline other than the one just created
* Enabled switching between tools using the ToolManager
* Fixed behavior when switching tools while extending a polyline

The selection is cleared while extending a polyline. There shouldn't 
actually be a reason to touch the selection at all, but currently the
selection outline does not update as expected while extending a
polyline.

Issue #157.
bjorn added a commit that referenced this issue Jan 19, 2018
* You can now select two handles of a segment by clicking the segment
* Context menu also works on segments
* You can drag a segment directly to move the two segments

Issue #157
@bjorn bjorn closed this as completed in 3b99820 Jan 19, 2018
@bjorn
Copy link
Member

bjorn commented Jan 19, 2018

Better late than never (in truth, somebody stepped up to sponsor this improvement!): Double-clicking a segment now insert a new point at the clicked location, and you can immediately drag the new point to where you want it. I think it's a great improvement in usability.

The old "Split Segments" menu action remains available, mainly since it allows quickly splitting many segments, if you wanted that.

I think could be great, if I can select two points only clicking the line, but it is a fairly trivial detail.

That's also implemented now. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants