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

This commit is contained in:
2019-12-04 10:40:14 +00:00
parent f8634df8c7
commit 81c7de74f9
11 changed files with 862 additions and 1331 deletions

View File

@@ -88,6 +88,7 @@ QGLViewWindow::QGLViewWindow(QWidget * parent): QMainWindow(parent), Ui::QGLView
//connect(matEditor, SIGNAL(changed()), this, SLOT(materialChanged()));
sceneTree->assignQGLView(view->view());
matEditor->assignQGLView(view->view());
objectEditor->assignQGLView(view->view());
session.load();
@@ -153,7 +154,6 @@ void QGLViewWindow::loadFile(const QString & path, bool import) {
void QGLViewWindow::selectionChanged() {
ObjectBase * sel_obj = view->view()->selectedObject();
//qDebug() << "selected" << (sel_obj ? sel_obj->name() : "0");
labelName->setText(sel_obj ? sel_obj->name() : "");
/**if (cur == 0) box->hide();
else {
@@ -165,7 +165,6 @@ void QGLViewWindow::selectionChanged() {
cur->addChild(box);
box->show();
}*/
objectEditor->setObject(sel_obj);
//qDebug() << sel_obj->boundingBox();
}