Bugfix: render instancing didn't work correct with layer ipo's,
each instance should have it's own layer.
This commit is contained in:
@@ -273,7 +273,7 @@ typedef struct ObjectInstanceRen {
|
||||
|
||||
ObjectRen *obr;
|
||||
Object *ob, *par;
|
||||
int index, psysindex;
|
||||
int index, psysindex, lay;
|
||||
|
||||
float mat[4][4], imat[3][3];
|
||||
short flag;
|
||||
|
||||
@@ -99,7 +99,7 @@ struct HaloRen *RE_inithalo_particle(struct Render *re, struct ObjectRen *obr, s
|
||||
struct StrandBuffer *RE_addStrandBuffer(struct ObjectRen *obr, int totvert);
|
||||
|
||||
struct ObjectRen *RE_addRenderObject(struct Render *re, struct Object *ob, struct Object *par, int index, int psysindex, int lay);
|
||||
struct ObjectInstanceRen *RE_addRenderInstance(struct Render *re, struct ObjectRen *obr, struct Object *ob, struct Object *par, int index, int psysindex, float mat[][4]);
|
||||
struct ObjectInstanceRen *RE_addRenderInstance(struct Render *re, struct ObjectRen *obr, struct Object *ob, struct Object *par, int index, int psysindex, float mat[][4], int lay);
|
||||
void RE_makeRenderInstances(struct Render *re);
|
||||
void RE_instanceTransformNormal(struct ObjectInstanceRen *obi, float *nor, float *tnor);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user