Hey everyone,
We have made a number of quality-of-life fixes to the BasePart.Size and Part.Shape properties over the last few weeks.
Let’s dive in!
Improvements to Size
Before, Size was supposedly locked so that X=Y=Z when Shape was set to Ball
.
This behavior was broken in a way that could lead to clients and servers disagreeing about the size of the sphere. The Y and Z axes would only snap every other time Size was set to a new value.
This restriction has been lifted: Spheres can be given uneven sides, and the real diameter is the minimum of all three sides.
The new behavior has a few benefits:
- You can scroll through the shape menu without the size snapping to a weird value.
- Size behaves consistently for all part shapes.
- Size will be synchronized correctly between the client and servers.
We believe this is fully backwards compatible because the new behavior is a more predictable subset of the old behavior.
Improvements to Shape
Part.Shape can now be set to Wedge and CornerWedge from the properties window and scripts. You no longer need a class conversion plugin to turn a part into a wedge.
The Shape property was previously limited to Ball, Block, and Cylinder; developers had to insert explicit WedgePart and CornerWedgePart instances.
WedgePart and CornerWedgePart still exist and will continue to work. This change only adds Wedge and CornerWedge to Enum.PartType
.
Finally, the Studio “Insert Part” button inserts wedges as standard Part instances with Shape = Wedge
rather than inserting WedgeParts.
Please check out the following docs for more information:
We hope these quality-of-life improvements will make your 3D workflows easier. Please let us know if you have any questions or concerns below.
Enjoy!