mirror of
https://github.com/ConjureETS/LOG750-LAB2.git
synced 2026-03-24 03:21:19 +00:00
Create on Shift Click
This commit is contained in:
parent
b985770871
commit
505af84739
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user