Code comments regarding last commit (forgotten to add before)
[blender.git] / source / blender / makesrna / intern / rna_particle.c
index 0dac797824d35b3fedbcc6a37791d40651ec12b0..00104b8667da98fcb722128e2bd3ce7409f9508b 100644 (file)
@@ -492,6 +492,9 @@ static int rna_ParticleSystem_tessfaceidx_on_emitter(ParticleSystem *particlesys
 
                                *r_fuv = &particle->fuv;
 
+                               /* This finds the first face to contain the emitting vertex,
+                                * this is not ideal, but is mostly fine as UV seams generally
+                                * map to equal-colored parts of a texture */
                                for (int i = 0; i < totface; i++, mface++) {
                                        if (ELEM(num, mface->v1, mface->v2, mface->v3, mface->v4)) {
                                                return i;
@@ -531,6 +534,9 @@ static int rna_ParticleSystem_tessfaceidx_on_emitter(ParticleSystem *particlesys
 
                                        *r_fuv = &parent->fuv;
 
+                                       /* This finds the first face to contain the emitting vertex,
+                                        * this is not ideal, but is mostly fine as UV seams generally
+                                        * map to equal-colored parts of a texture */
                                        for (int i = 0; i < totface; i++, mface++) {
                                                if (ELEM(num, mface->v1, mface->v2, mface->v3, mface->v4)) {
                                                        return i;