mirror of https://github.com/ArduPilot/ardupilot
waf: px4: use copy of "use" in px4_import_objects_from_use()
Utils.to_list() returns the argument if it is a list, which means that px4_import_objects_from_use() cleared that attribute when processing the queue.
This commit is contained in:
parent
424f6490fc
commit
8fb6ccc8b7
|
@ -39,7 +39,7 @@ def px4_dynamic_env(self):
|
|||
@after_method('apply_link')
|
||||
@before_method('process_use')
|
||||
def px4_import_objects_from_use(self):
|
||||
queue = Utils.to_list(getattr(self, 'use', []))
|
||||
queue = list(Utils.to_list(getattr(self, 'use', [])))
|
||||
names = set()
|
||||
|
||||
while queue:
|
||||
|
|
Loading…
Reference in New Issue