git-svn-id: svn://db.shs.com.ru/libs@65 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -64,8 +64,8 @@ void GLObjectEditor::setObject(GLObjectBase * o) {
|
||||
checkCastShadows->setChecked(object->isCastShadows());
|
||||
checkReceiveShadows->setChecked(object->isReceiveShadows());
|
||||
comboRenderMode->setCurrentIndex(rmodes.indexOf(object->renderMode()));
|
||||
groupLight->setEnabled(object->type() == GLObjectBase::Light);
|
||||
if (object->type() == GLObjectBase::Light) {
|
||||
groupLight->setEnabled(object->type() == GLObjectBase::glLight);
|
||||
if (object->type() == GLObjectBase::glLight) {
|
||||
Light * l = globject_cast<Light * >(object);
|
||||
//bool is_dir = l->light_type == Light::Directional, is_cone = l->light_type == Light::Cone;
|
||||
buttonLightColor->setColor(l->color());
|
||||
@@ -102,7 +102,7 @@ void GLObjectEditor::objectChanged() {
|
||||
object->setCastShadows(checkCastShadows->isChecked());
|
||||
object->setReceiveShadows(checkReceiveShadows->isChecked());
|
||||
object->setRenderMode((GLObjectBase::RenderMode)rmodes[comboRenderMode->currentIndex()]);
|
||||
if (object->type() == GLObjectBase::Light) {
|
||||
if (object->type() == GLObjectBase::glLight) {
|
||||
Light * l = globject_cast<Light * >(object);
|
||||
//bool is_dir = l->light_type == Light::Directional, is_cone = l->light_type == Light::Cone;
|
||||
l->setColor(buttonLightColor->color());
|
||||
|
||||
Reference in New Issue
Block a user