Fixing scale to update all xyz on maintain proportions

This commit is contained in:
Lars Brubaker 2019-02-04 09:46:21 -08:00
parent 4017c38a49
commit b991116ef7

View file

@ -280,6 +280,8 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
ScaleRatio[2] = ScaleRatio[0];
Rebuild();
// and invalidate the other properties
Invalidate(new InvalidateArgs(this, InvalidateType.Properties));
// then update the display values
Invalidate(new InvalidateArgs(null, InvalidateType.DisplayValues));
}
}
@ -292,6 +294,8 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
ScaleRatio[2] = ScaleRatio[1];
Rebuild();
// and invalidate the other properties
Invalidate(new InvalidateArgs(this, InvalidateType.Properties));
// then update the display values
Invalidate(new InvalidateArgs(null, InvalidateType.DisplayValues));
}
}
@ -304,6 +308,8 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
ScaleRatio[1] = ScaleRatio[2];
Rebuild();
// and invalidate the other properties
Invalidate(new InvalidateArgs(this, InvalidateType.Properties));
// then update the display values
Invalidate(new InvalidateArgs(null, InvalidateType.DisplayValues));
}
}