[Bf-blender-cvs] [b14e8f35f7c] functions: vertices should have a unit length normal
Jacques Lucke
noreply at git.blender.org
Wed Sep 4 19:43:50 CEST 2019
Commit: b14e8f35f7c90d0c06d0aea445a4d0373b8417ac
Author: Jacques Lucke
Date: Wed Sep 4 18:05:06 2019 +0200
Branches: functions
https://developer.blender.org/rBb14e8f35f7c90d0c06d0aea445a4d0373b8417ac
vertices should have a unit length normal
===================================================================
M source/blender/simulations/bparticles/c_wrapper.cpp
===================================================================
diff --git a/source/blender/simulations/bparticles/c_wrapper.cpp b/source/blender/simulations/bparticles/c_wrapper.cpp
index aed6eb6c522..d64255d4813 100644
--- a/source/blender/simulations/bparticles/c_wrapper.cpp
+++ b/source/blender/simulations/bparticles/c_wrapper.cpp
@@ -206,6 +206,7 @@ Mesh *BParticles_modifier_point_mesh_from_state(BParticlesSimulationState state_
for (uint i = 0; i < mesh->totvert; i++) {
copy_v3_v3(mesh->mvert[i].co, positions[i]);
+ mesh->mvert[i].no[2] = 32767;
}
return mesh;
More information about the Bf-blender-cvs
mailing list