Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2018-12-07 18:42:36 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2018-12-07 18:42:36 +0300
commit16e67dc206d4dec9aa6f39eec1609b1866654eab (patch)
tree674ac71440a87003936fe6c5e13ad24be1c79e94 /source/blender/modifiers
parentf034926dbac36de826b023cb0adeed447384414e (diff)
parent0eb61c799d0e98ccb92b12aea744c79a9da7e7c2 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_particleinstance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_particleinstance.c b/source/blender/modifiers/intern/MOD_particleinstance.c
index 2d5b520e9ca..db552fa2122 100644
--- a/source/blender/modifiers/intern/MOD_particleinstance.c
+++ b/source/blender/modifiers/intern/MOD_particleinstance.c
@@ -499,7 +499,7 @@ static Mesh *applyModifier(
const int ml_index = (ml - mloop);
if (mloopcols_index != NULL) {
const int part_index = vert_part_index[ml->v];
- store_float_in_vcol(&mloopcols_index[ml_index], (float)part_index / psys->totpart);
+ store_float_in_vcol(&mloopcols_index[ml_index], (float)part_index / (float)(psys->totpart-1));
}
if (mloopcols_value != NULL) {
const float part_value = vert_part_value[ml->v];