System Information
Operating system: Win
Graphics card:
Blender Version
Broken: 2.83.0 LTS (2.90.0 Alpha Hash: b89898cbd381)
Worked: never
Short description of error
Creating new texture slot of particle systems by python will corrupt texture's influence on particles.
Exact steps for others to reproduce the error
- open TextureSlot_Bug.blend
- run script: SetTextureSlot_bug.py
- select Plane object and execute operator: setparticlestextureslot
- script will create new particles texture slot
- appends black/white texture to the created slot
- sets influence of density
- then particles should be masked only on half of plane, but they are not - slot is corrupted
Workaround - bug proof
- reopen TextureSlot_Bug.blend
- select Plane object particles and create new empty texture on first Texture slot
- remove this texture - this step will create new empty slot
- run script: SetTextureSlot_bug.py and execute operator: setparticlestextureslot
- the particles are masked - everything works properly because script doesn't have to create a new texture slot