Page 1 of 1
CopyBrush shift position
Posted: Sun Mar 17, 2013 7:13 pm
by ilbarbax
I have the following problem: If I copy a brush, then the new bust is not identical to the original one, but the content is shifted by one pixel down and one right, then copying recursively the same brush at the end the content will disappear.
I use 4.7 version
Why?
Re: CopyBrush shift position
Posted: Mon Mar 18, 2013 10:56 pm
by airsoftsoftwair
That looks more like a bug in your code because
CopyBrush() creates an idental copy. Can you post a very small code snippet that illustrates the issue?
Re: CopyBrush shift position
Posted: Wed Mar 20, 2013 9:18 pm
by ilbarbax
@Andreas,
Ok, I did some test on a simple script and is confirmed that is my code who create the problem. At this point I wonder there is some setup someware who introduce this shifting: Is there any command that I may have used that could cause that?.
I lost one weekend serching for the root cause.
Re: CopyBrush shift position
Posted: Wed Mar 20, 2013 10:02 pm
by ilbarbax
ilbarbax wrote:@Andreas,
Ok, I did some test on a simple script and is confirmed that is my code who create the problem. At this point I wonder there is some setup someware who introduce this shifting: Is there any command that I may have used that could cause that?.
I lost one weekend serching for the root cause.
Finally I found the bug. Definitely my fault. (I was scaling the brush and then rescaling it back after some modifications. With odd dimensions, at the end it was loosing one pixel)