[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28749] branches/render25/source/blender/ modifiers/intern/MOD_util.c: Render Branch: Fix wrong (non-normalized) orco coordinates for particle
Brecht Van Lommel
brecht at blender.org
Thu May 13 17:30:50 CEST 2010
Revision: 28749
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28749
Author: blendix
Date: 2010-05-13 17:30:50 +0200 (Thu, 13 May 2010)
Log Message:
-----------
Render Branch: Fix wrong (non-normalized) orco coordinates for particle
system with subdivision surfaces disabled, resulted in strange dark spots
when test rendering sintel at subdiv level 0 due to different textures
coordinates.
Modified Paths:
--------------
branches/render25/source/blender/modifiers/intern/MOD_util.c
Modified: branches/render25/source/blender/modifiers/intern/MOD_util.c
===================================================================
--- branches/render25/source/blender/modifiers/intern/MOD_util.c 2010-05-13 15:28:30 UTC (rev 28748)
+++ branches/render25/source/blender/modifiers/intern/MOD_util.c 2010-05-13 15:30:50 UTC (rev 28749)
@@ -156,8 +156,11 @@
//CDDM_calc_normals(dm);
}
- if(orco)
- DM_add_vert_layer(dm, CD_ORCO, CD_ASSIGN, get_mesh_orco_verts(ob));
+ if(orco) {
+ float (*orco)[3]= (float(*)[3])get_mesh_orco_verts(ob);
+ transform_mesh_orco_verts(ob->data, orco, dm->getNumVerts(dm), 0);
+ DM_add_vert_layer(dm, CD_ORCO, CD_ASSIGN, orco);
+ }
}
else if(ELEM3(ob->type,OB_FONT,OB_CURVE,OB_SURF)) {
if(is_last_displist(ob)) {
More information about the Bf-blender-cvs
mailing list