mirror of
https://github.com/ConjureETS/LOG750-LAB2.git
synced 2026-03-24 03:21:19 +00:00
Merge branch 'master' of github.com:fataku/LOG750-LAB2
This commit is contained in:
commit
74e43e0294
@ -187,7 +187,7 @@ void Viewer::mousePressEvent(QMouseEvent* e) {
|
|||||||
std::cout << "Window geom: " << this->window()->size().width() << "w, " << this->window()->size().height() << "h" << endl;
|
std::cout << "Window geom: " << this->window()->size().width() << "w, " << this->window()->size().height() << "h" << endl;
|
||||||
|
|
||||||
QMatrix4x4 selectedPosition = pickGeom(x, y);
|
QMatrix4x4 selectedPosition = pickGeom(x, y);
|
||||||
if(!selectedPosition.isIdentity())
|
if(!selectedPosition.isIdentity() && e->modifiers().testFlag(Qt::ShiftModifier))
|
||||||
{
|
{
|
||||||
Cube* c = new Cube;
|
Cube* c = new Cube;
|
||||||
c->setType(TEX_WOODFLOOR);
|
c->setType(TEX_WOODFLOOR);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user