mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-13 15:16:28 +00:00
Fixed rotation arrow rendering bug, fixed waypoint path bounding boxes not updating when the waypoints are transformed, fixed clone selection and paste nodes commands not properly notifying linked instances of their links being modified
This commit is contained in:
@@ -138,6 +138,17 @@ void CWaypointExtra::GetLinkedWaypoints(std::list<CWaypointExtra*>& rOut)
|
||||
}
|
||||
}
|
||||
|
||||
void CWaypointExtra::OnTransformed()
|
||||
{
|
||||
for (u32 iLink = 0; iLink < mLinks.size(); iLink++)
|
||||
{
|
||||
SWaypointLink& rLink = mLinks[iLink];
|
||||
rLink.LineAABB = CAABox::skInfinite;
|
||||
rLink.LineAABB.ExpandBounds(AbsolutePosition());
|
||||
rLink.LineAABB.ExpandBounds(rLink.pWaypoint->AbsolutePosition());
|
||||
}
|
||||
}
|
||||
|
||||
void CWaypointExtra::LinksModified()
|
||||
{
|
||||
BuildLinks();
|
||||
|
||||
@@ -29,6 +29,7 @@ public:
|
||||
bool IsPathLink(CLink *pLink);
|
||||
void GetLinkedWaypoints(std::list<CWaypointExtra*>& rOut);
|
||||
|
||||
void OnTransformed();
|
||||
void LinksModified();
|
||||
void AddToRenderer(CRenderer *pRenderer, const SViewInfo& ViewInfo);
|
||||
void Draw(FRenderOptions Options, int ComponentIndex, const SViewInfo& ViewInfo);
|
||||
|
||||
Reference in New Issue
Block a user