Edit.js rescale down not working


#1

If you rescale up with the rescale function.

Everything seems to work fine.
But when you want to rescale down. lats say from 1000% to 500% it’s not working. instead it’s scaling only more up. tried todo -500% buit that does not work to.

Im doingh something wrong or is this a bug ?


#2

Try 50%.
That should be half as big as it is.


#3

That works, but. only if you are below 100%.
The case is that you need to upscale many times by a few 100% and if you have done that you cannot scale down. You need to reset dimensions and start over from 100%


#4

Scale is relative to the entity’s current size; not some “original” size.

Create a cube and change it’s z dimension to 0.4, so that it has dimensions 0.2, 0.2, 0.4.
Scale by 200% … dimensions are now 0.4, 0.4, 0.8.
Scale by 50% … dimensions are back to 0.2, 0.2, 0.4.


#5

Typo? and 20 characters to post…


#6

Yes … typo … corrected, thanks


#7

Yes, i checked it, it works the same as in my paint program.