# | Line 11 | Line 11 | static const char RCSid[] = "$Id$"; | |
---|---|---|
11 | * | |
12 | */ | |
13 | ||
14 | + | #define _USE_MATH_DEFINES |
15 | #include "rtio.h" | |
16 | #include <stdlib.h> | |
17 | #include <math.h> | |
# | Line 528 | Line 529 | load_bsdf_data(SDData *sd, ezxml_t wdb, int rowinc) | |
529 | if (*sdnext == ',') sdnext++; | |
530 | if (rowinc) { | |
531 | int r = i/dp->nout; | |
532 | < | int c = i - c*dp->nout; |
532 | > | int c = i - r*dp->nout; |
533 | mBSDF_value(dp,r,c) = atof(sdata); | |
534 | } else | |
535 | dp->bsdf[i] = atof(sdata); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |