M
makani
Guest
I had some code that would change the x value of one of my objects. It worked - the object was redrawn in it's new location, but the drawing in it's old location was not cleared. I double checked that I was not creating new instances. To fix it, I ended up clicking "Enable Viewports" and then the checkbox "Clear Viewport Background" for Viewport 0 that I made visible.
But I don't know why that fixes it, and why it has that default behavior in the first place. Especially since if I call motion_add on that object, it moves just fine without leaving a trail. I'm guessing there's a good reason, but I don't know what it is.
If someone could point me at what to study up on to understand this, I would greatly appreciate it.
But I don't know why that fixes it, and why it has that default behavior in the first place. Especially since if I call motion_add on that object, it moves just fine without leaving a trail. I'm guessing there's a good reason, but I don't know what it is.
If someone could point me at what to study up on to understand this, I would greatly appreciate it.