macdylan / Snapmaker2Plugin

Snapmaker 2 Plugin for Cura

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Machine manager does not have "hasProperty" function

nallath opened this issue · comments

stack3 is set to be the MachineManager

stack3 = app.getMachineManager()

This is already a bit odd variable naming, as the MachineManager isn't a stack, but it's also treated a bit later as if it's an actual stack:

elif stack3.hasProperty(key, "value"):
stack = stack3

But the MachineManager doesn't even have a function called "hasProperty". I expect that this code isn't ever hit, as the "real" stacks generally do have the property that you ask for.

commented

Duplicate of #4