Blender Git Loki
Git Commits -> Revision 78c491e
Revision 78c491e by Sergey Sharybin (master) February 5, 2014, 17:46 (GMT) |
Fix T35247: Particle texture behaves incorrectly after changing the number of particles Root of the issue goes to the order of particle initialization which does texture evaluation (which does depend on particle coordinate) and particle birth coordinate calculation. So basically what happened is: * Changing number of particles re-allocated all the particles, which sets their coordinate to (0,0,0) * Texture evaluation used this non-initialized coordinate * Coordinates were calculated for particles Reshuffled code a bit so now texture evaluation happens after particles. coordinate calculation. Basically moved texture evaluation to particle reset function. Reset happens after initialization anyway and it does know particle coordinates. Also, if reset is being called without init then it's also kind of logical to re-evaluate texture because particle coordinates might change. |
Commit Details:
Full Hash: 78c491e62a573eac647085a0520cb35526d6fcc3
Parent Commit: 9800ed5
Lines Changed: +18, -8