Skip to content
This repository has been archived by the owner on Dec 3, 2020. It is now read-only.

Commit

Permalink
Temporary fix for top right viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed May 27, 2014
1 parent b66ba55 commit be90ff4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NBEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ void CDR::update(NBEditor* editor, bool drag, rect<s32> offset)

// Snapping
wpos -= vector3df(node->position.X, node->position.Y, node->position.Z);
if (window == VIEW_XZ)
wpos.Z -= 0.1;

if (editor->state->settings->getBool("snapping")) {
wpos.X = floor((wpos.X + 0.5) * 16 + 0.5) / 16 - 0.5;
Expand Down

0 comments on commit be90ff4

Please sign in to comment.