The function to assign site IDs to new entities was not being called for anchors that were children of lifts, hence the subsequent query to save the site would not find the anchor (its ID would be missing).
The fix is to make sure we assign a site ID to anchors that are children of the lift cabin.
To test:
Create a new site.
Create a lift.
Add a lane that goes into the lift.
Save the site.
Without this PR you should get this error:
ERROR librmf_site_editor::site::save: Unable to compile site: an object has a reference to an anchor that does not exist
Bug fix
Fixed bug
Fixes #224
Fix applied
The function to assign site IDs to new entities was not being called for anchors that were children of lifts, hence the subsequent query to save the site would not find the anchor (its ID would be missing). The fix is to make sure we assign a site ID to anchors that are children of the lift cabin.
To test:
Without this PR you should get this error:
With this PR it should save successfully.