Rename process() to parse()

Because we need to execute several other processing steps as well.
This parse function for G0 and G1 now needs to initialise the state in the same way as how Block is initialised in CuraEngine.

Contributes to issue CURA-5561.
This commit is contained in:
Ghostkeeper 2018-09-03 16:08:12 +02:00
parent 594e3c986d
commit 5bf90df6be
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -194,7 +194,7 @@ class Command:
## Estimates the execution time of this command and calculates the state
# after this command is executed.
def process(self) -> None:
def parse(self) -> None:
line = self._cmd_str.strip()
if not line:
self._is_empty = True
@ -381,7 +381,7 @@ class CommandBuffer:
cmd_count = 0
for idx, line in enumerate(self._all_lines):
cmd = Command(line, previous_state)
cmd.process()
cmd.parse()
self._all_commands.append(cmd)
previous_state = cmd.get_after_state()