git-svn-id: svn://db.shs.com.ru/libs@358 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2018-02-14 11:59:11 +00:00
parent 540b358a08
commit b58b8cd046
11 changed files with 36 additions and 4 deletions

View File

@@ -499,7 +499,10 @@ void QGLView::collectGraphicItems(QList<QGraphicsItem * > & list, QGraphicsItem
void QGLView::collectObjectLights(GLObjectBase * o) {
if (o->type_ == GLObjectBase::glLight) lights_ << globject_cast<Light * >(o);
if (o->type_ == GLObjectBase::glLight) {
lights_ << globject_cast<Light * >(o);
o->view_ = this;
}
foreach (GLObjectBase * i, o->children())
collectObjectLights(i);
}