Skip to content

Commit

Permalink
#5231: Cleanup in Clipper module
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed May 20, 2020
1 parent 6b8bb31 commit cb35006
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions radiant/clipper/Clipper.cpp
Expand Up @@ -4,8 +4,6 @@
#include "ipreferencesystem.h"
#include "itextstream.h"
#include "iundo.h"
#include "imainframe.h"
#include "ieventmanager.h"
#include "iscenegraph.h"
#include "iselection.h"
#include "itexdef.h"
Expand All @@ -14,7 +12,7 @@
#include "module/StaticModule.h"
#include "ClipPoint.h"
#include "brush/csg/CSG.h"
#include "ui/texturebrowser/TextureBrowser.h"
#include "debugging/debugging.h"

#include <functional>

Expand Down Expand Up @@ -145,7 +143,6 @@ void Clipper::splitBrushes(const Vector3& p0,
Vector3 planePoints[3] = {p0, p1, p2};

brush::algorithm::splitBrushesByPlane(planePoints, split);
GlobalMainFrame().updateAllWindows();
}

void Clipper::setClipPlane(const Plane3& plane) {
Expand All @@ -168,13 +165,13 @@ void Clipper::update() {
}
setClipPlane(Plane3(planepts));
}
GlobalMainFrame().updateAllWindows();
SceneChangeNotify();
}

void Clipper::flipClip() {
_switch = !_switch;
update();
GlobalMainFrame().updateAllWindows();
SceneChangeNotify();
}

void Clipper::reset() {
Expand Down Expand Up @@ -260,7 +257,6 @@ const StringSet& Clipper::getDependencies() const {
if (_dependencies.empty()) {
_dependencies.insert(MODULE_XMLREGISTRY);
_dependencies.insert(MODULE_COMMANDSYSTEM);
_dependencies.insert(MODULE_EVENTMANAGER);
_dependencies.insert(MODULE_PREFERENCESYSTEM);
_dependencies.insert(MODULE_MAINFRAME);
}
Expand Down

0 comments on commit cb35006

Please sign in to comment.