* Fix for rendering wire materials
authorMatt Ebb <matt@mke3.net>
Sun, 23 Aug 2009 22:11:19 +0000 (22:11 +0000)
committerMatt Ebb <matt@mke3.net>
Sun, 23 Aug 2009 22:11:19 +0000 (22:11 +0000)
source/blender/render/intern/source/shadeinput.c

index 7887392f1d2d9439ddf4e28c476017cb2c0c2ec7..ede3c2e0503adc86b052fc23537a9d8477b98ea3 100644 (file)
@@ -188,11 +188,11 @@ void shade_input_do_shade(ShadeInput *shi, ShadeResult *shr)
                /* copy all relevant material vars, note, keep this synced with render_types.h */
                shade_input_init_material(shi);
                
-               if (shi->mat->material_type == MA_TYPE_SURFACE) {
-                       shade_material_loop(shi, shr);
-               } else if (shi->mat->material_type == MA_TYPE_VOLUME) {
+               if (shi->mat->material_type == MA_TYPE_VOLUME) {
                        if(R.r.mode & R_RAYTRACE)
                                shade_volume_outside(shi, shr);
+               } else { /* MA_TYPE_SURFACE, MA_TYPE_WIRE */
+                       shade_material_loop(shi, shr);
                }
        }