diff options
author | Ton Roosendaal <ton@blender.org> | 2004-05-29 23:46:46 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-05-29 23:46:46 +0400 |
commit | 62c333a5629bc5e264fd2740b032cc6ac28311dc (patch) | |
tree | 423974c2f9bb9e5fae6b57749fb2435612cebebd /source | |
parent | d2dbc96b81d9ab5df2aaeee5ca56eb050f38f575 (diff) |
report #1338
Switched order of routines for displacement and autosmooth, where the
autosmooth will be last now. This prevents displaced (loose) faces, and
might give attractive sharp edges in other cases too.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/renderconverter/intern/convertBlenderScene.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/source/blender/renderconverter/intern/convertBlenderScene.c b/source/blender/renderconverter/intern/convertBlenderScene.c index 57bdd301304..7c8f685be6f 100644 --- a/source/blender/renderconverter/intern/convertBlenderScene.c +++ b/source/blender/renderconverter/intern/convertBlenderScene.c @@ -1531,6 +1531,14 @@ static void init_render_mesh(Object *ob) } } + if(do_puno) { + normalenrender(totverto, totvlako); + do_puno= 0; + } + + if (test_for_displace( ob ) ) + do_displacement(ob, totvlako, R.totvlak-totvlako, totverto, R.totvert-totverto); + if(do_autosmooth || (me->flag & ME_AUTOSMOOTH)) { autosmooth(totverto, totvlako, me->smoothresh); do_puno= 1; @@ -2547,7 +2555,10 @@ static void init_render_object(Object *ob) MTC_Mat4Invert(ob->imat, mat); } - if (test_for_displace( ob ) ) + /* the exception below is because displace code now is in init_render_mesh call, + I will look at means to have autosmooth enabled for all object types + and have it as general postprocess, like displace */ + if (ob->type!=OB_MESH && test_for_displace( ob ) ) do_displacement(ob, startface, R.totvlak-startface, startvert, R.totvert-startvert); } |