When I’m scaling a specific part in my game up or down, studio freezes and I get an error that ScaleDragger is not responding. This appears to only affect one part.
Update: I also cannot move the part up or down, this (and scaling) only affects the part in the video if it’s in same area. Otherwise, I can move and scale the part up and down in any other area normally.
The reason it’s failing is that that part of the map has some… issues. There’s got to be like, hundreds of complex MeshParts in that volume, many of them stacked in identical locations to other ones. Like, try selecting and deleting one of those trees, you’ll see that there’s many identical trees stacked underneath it. The same is true for much of the other geometry around there.
The case of complex meshes stacked exactly on top of one and other like that is the worst possible case for the Snap to Parts code in the draggers: Normally it shapecasts along the resize/move direction to find part snaps incrementally. By doing it incrementally, it can normally give up and avoid causing issues if it’s running into a lot of expensive stuff to cast against. However, if there’s a whole bunch of complex geometry stacked up in exactly the same place, it runs into all of that geometry in a single extremely expensive shapecast call, leading to the hang.
I’ll see if there’s anything I can do to further improve the code where it gives up, but if you resolve the duplication problems the issue will go away.