Only complete path when there are not split_ends or position_stack

This commit is contained in:
Sander Steffann 2020-06-02 13:14:38 +02:00
parent 34ae57dfa3
commit 8bd9b460cb

View File

@ -61,7 +61,7 @@ def update_connected_endpoints(instance, **kwargs):
break
endpoint_a = path[0][0]
endpoint_b = path[-1][2]
endpoint_b = path[-1][2] if not split_ends and not position_stack else None
if getattr(endpoint_a, 'is_path_endpoint', False) and getattr(endpoint_b, 'is_path_endpoint', False):
logger.debug("Updating path endpoints: {} <---> {}".format(endpoint_a, endpoint_b))