openroberta-lab
openroberta-lab copied to clipboard
FunctionCall-block does not update parameters after copy/pasting
Describe the bug
Copying a functionCall-block (robProcedures_call*), then changing the parameters on the functionDefinition-block (robProcedures_def*) by:
- adding/deleting them
- changing the name
- changing the datatype
and pasting the functionCall-block back in, the parameters are not updated. Sometimes when opening the simulation or code-view, atleast the name of the first parameter is updated.
To Reproduce
Steps to reproduce the behavior:
-
Generate a program like this.
-
Copy the functionCall-block. (i deleted the original functionCall-block afterwards so its more clear in the screenshots)
-
Change the parameters e.g add/remove parameters, change the name/datatype.
-
Paste the copied functionCall-block back in. The pasted block still has the old parameter and is not updated.
- Opening the code-view updates the name of the parameter but does not throw an error.
- Opening the code-view updates the name of the parameter but does not throw an error.
Expected behavior
Pasting the block in should update its parameters