Skip to content

Commit

Permalink
2765: fix positioning pastes when the mouse is over an Entity (#2766)
Browse files Browse the repository at this point in the history
Fixes #2765
  • Loading branch information
ericwa committed May 16, 2019
1 parent 649b9b6 commit 9fea37e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/View/MapView3D.cpp
Expand Up @@ -334,7 +334,7 @@ namespace TrenchBroom {
auto pickResult = Model::PickResult::byDistance(editorContext);

document->pick(pickRay, pickResult);
const auto& hit = pickResult.query().pickable().type(Model::Brush::BrushHit).first();
const auto& hit = pickResult.query().pickable().type(Model::Brush::BrushHit).occluded().first();

if (hit.isMatch()) {
const auto* face = Model::hitToFace(hit);
Expand Down

0 comments on commit 9fea37e

Please sign in to comment.