mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
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:
parent
594e3c986d
commit
5bf90df6be
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue