~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/radiosity/intern/source/radfactors.c

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
    formfactors.c       nov/dec 1992
34
34
 
35
 
    $Id: radfactors.c,v 1.7 2004/04/07 18:19:30 ton Exp $
 
35
    $Id: radfactors.c,v 1.8 2004/06/26 18:03:57 ton Exp $
36
36
 
37
37
 *************************************** */
38
38
 
524
524
void progressiverad()
525
525
{
526
526
        RPatch *shoot;
 
527
        float unshot[3];
527
528
        int it= 0;
528
529
 
529
530
        rad_printstatus();
539
540
                
540
541
                drawpatch_ext(shoot, 0x88FF00);
541
542
 
 
543
                if(shoot->first->f & RAD_TWOSIDED) {
 
544
                        VECCOPY(unshot, shoot->unshot);
 
545
                        VecMulf(shoot->norm, -1.0);
 
546
                        if(makeformfactors(shoot))
 
547
                                applyformfactors(shoot);
 
548
                        VecMulf(shoot->norm, -1.0);
 
549
                        VECCOPY(shoot->unshot, unshot);
 
550
                }
 
551
        
542
552
                if( makeformfactors(shoot) ) {
543
 
                
544
553
                        applyformfactors(shoot);
545
554
        
546
555
                        it++;