Inherit button now correctly removes values if needed for multi extrusion machines

CURA-2374
This commit is contained in:
Jaime van Kessel 2016-10-04 10:46:13 +02:00
parent 72bd268e2d
commit faf98e40f8

View file

@ -217,10 +217,9 @@ Item {
break;
}
}
if(last_entry == 4 && base.stackLevel == 0 && base.stackLevels.length == 2)
if((last_entry == 4 || last_entry == 11) && base.stackLevel == 0 && base.stackLevels.length == 2)
{
// Special case of the inherit reset. If only the definition (4th container) and the first
// Special case of the inherit reset. If only the definition (4th or 11th) container) and the first
// entry (user container) are set, we can simply remove the container.
propertyProvider.removeFromContainer(0)
}