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

This commit is contained in:
2015-12-09 15:44:03 +00:00
parent 64f21dc682
commit 458a516317
31 changed files with 1486 additions and 870 deletions

View File

@@ -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());