Commit f56d63f0 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

closed Issue #15.

parent 8579028e
......@@ -82,6 +82,10 @@ namespace campvis {
newIntesityDomain.x -= offset;
newIntesityDomain.y += offset;
// triple-check for rock solid safety ;)
if (newIntesityDomain.x > newIntesityDomain.y)
std::swap(newIntesityDomain.x, newIntesityDomain.y);
_prop->getTF()->setIntensityDomain(tgt::clamp(newIntesityDomain, tgt::vec2(0.f), tgt::vec2(1.f)));
e->ignore();
}
......
......@@ -30,8 +30,6 @@
#include "openclpipeline.h"
#include "tgt/event/keyevent.h"
#include "tgt/glcontext.h"
#include "tgt/qt/qtcontextmanager.h"
#include "core/datastructures/imagedata.h"
#include "core/datastructures/genericimagerepresentationlocal.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment