forked from bartvdbraak/blender
Bugfix #5560
Dupliverted Lamps did not draw in the 3D window anymore. Caused by OpenGL displaylist optimize which cannot work for lamps... (yet)
This commit is contained in:
parent
f9c2887119
commit
7135cd0721
@ -2523,6 +2523,11 @@ static void draw_dupli_objects(View3D *v3d, Base *base)
|
||||
}
|
||||
/* generate displist */
|
||||
if(use_displist == -1) {
|
||||
|
||||
/* lamp drawing messes with matrices, could be handled smarter... but this works */
|
||||
if(dob->ob->type==OB_LAMP)
|
||||
use_displist= 0;
|
||||
else {
|
||||
/* disable boundbox check for list creation */
|
||||
object_boundbox_flag(dob->ob, OB_BB_DISABLED, 1);
|
||||
/* need this for next part of code */
|
||||
@ -2538,6 +2543,7 @@ static void draw_dupli_objects(View3D *v3d, Base *base)
|
||||
use_displist= 1;
|
||||
object_boundbox_flag(dob->ob, OB_BB_DISABLED, 0);
|
||||
}
|
||||
}
|
||||
if(use_displist) {
|
||||
mymultmatrix(dob->mat);
|
||||
if(boundbox_clip(dob->mat, bb))
|
||||
|
Loading…
Reference in New Issue
Block a user