Fixing scale to update all xyz on maintain proportions
This commit is contained in:
parent
4017c38a49
commit
b991116ef7
1 changed files with 6 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue