mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 05:53:59 -06:00
Avoid warning for object in position 0
CURA-7333
This commit is contained in:
parent
97199d72ad
commit
99a762bcb9
1 changed files with 2 additions and 0 deletions
|
@ -1424,6 +1424,8 @@ class CuraApplication(QtApplication):
|
|||
if file_name in node_name:
|
||||
# if the file_name exists inside the node_name, remove it along with all parenthesis and spaces
|
||||
node_str_index = re.sub(r'[() ]', '', node_name.replace(file_name, ""))
|
||||
if node_str_index == "":
|
||||
node_str_index = "0"
|
||||
try:
|
||||
node_int_index = int(node_str_index)
|
||||
except ValueError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue