fixed "edit selected object" not editing non-vertex objects

Tue, 03 Apr 2018 17:34:13 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 03 Apr 2018 17:34:13 +0300
changeset 1374
d389af23fbfa
parent 1373
e1380c0d4326
child 1375
689121d162b6

fixed "edit selected object" not editing non-vertex objects

src/toolsets/basictoolset.cpp file | annotate | diff | comparison | revisions
--- a/src/toolsets/basictoolset.cpp	Tue Apr 03 17:32:02 2018 +0300
+++ b/src/toolsets/basictoolset.cpp	Tue Apr 03 17:34:13 2018 +0300
@@ -280,12 +280,8 @@
 {
 	if (countof(selectedObjects()) == 1)
 	{
-		LDObject* obj = *selectedObjects().begin();
-		if (obj->numVertices() > 0)
-		{
-			VertexObjectEditor editor {obj};
-			editor.exec();
-		}
+		LDObject* object = *selectedObjects().begin();
+		::editObject(this->m_window, object);
 	}
 }
 

mercurial