Commit 1d4a3542 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Create a textbox for process FPAR only if needed

parent 719f1273
......@@ -153,7 +153,7 @@ def _automaton(ast, scene):
top_level_symbols.append(new_state)
# If the source .pr contained FPAR outside a textbox, create one
if ast.parent.fpar:
if ast.parent.fpar and not any(x.fpar for x in ast.textAreas):
text_area = ogAST.TextArea()
fpars = ('{} {}'.format(fp['name'],
type_name(fp['type']).replace('-', '_'))
......
Markdown is supported
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