Create on Shift Click

This commit is contained in:
Riku Avelar 2016-11-18 17:37:50 -05:00
parent b985770871
commit 505af84739

View File

@ -187,7 +187,7 @@ void Viewer::mousePressEvent(QMouseEvent* e) {
std::cout << "Window geom: " << this->window()->size().width() << "w, " << this->window()->size().height() << "h" << endl;
QMatrix4x4 selectedPosition = pickGeom(x, y);
if(!selectedPosition.isIdentity())
if(!selectedPosition.isIdentity() && e->modifiers().testFlag(Qt::ShiftModifier))
{
Cube* c = new Cube;
c->setType(TEX_WOODFLOOR);