Commit 9764a438 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix parsing of process type

parent d0c288e3
...@@ -54,9 +54,12 @@ def parse_scene(scene, full_model=False): ...@@ -54,9 +54,12 @@ def parse_scene(scene, full_model=False):
# Parse text areas to retrieve signal names USELESS # Parse text areas to retrieve signal names USELESS
pr = generate(each) pr = generate(each)
pr_data.extend(pr) pr_data.extend(pr)
if processes: for pro in processes:
to_env = processes[0].connection.out_sig if isinstance(pro, sdlSymbols.ProcessType):
from_env = processes[0].connection.in_sig # process type does not have connections
to_env = pro.connection.out_sig
from_env = pro.connection.in_sig
if to_env or from_env: if to_env or from_env:
channels.append('channel c') channels.append('channel c')
Indent.indent += 1 Indent.indent += 1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment