From 7aed88dbcf9d37a1f40c8cad115f055c4d69e7a9 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Thu, 29 Dec 2016 19:03:16 -0200 Subject: Parent/child optimization implemented And others bugfixes. --- Project/Load.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Project/Load.cpp') diff --git a/Project/Load.cpp b/Project/Load.cpp index f5afda3..be5d1bb 100644 --- a/Project/Load.cpp +++ b/Project/Load.cpp @@ -7,6 +7,7 @@ bool Load::AddParent(Element* parent, wxPoint2DDouble position) { if(parent) { m_parentList.push_back(parent); + parent->AddChild(this); wxPoint2DDouble parentPt = parent->RotateAtPosition(position, -parent->GetAngle()); // Rotate click to horizontal position. parentPt.m_y = parent->GetPosition().m_y; // Centralize on bus. -- cgit