summaryrefslogtreecommitdiffstats
path: root/modules/csg/csg_shape.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2019-07-05 08:13:12 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2019-07-05 08:13:12 +0200
commite87e8c048589ae38629e544144ea7cadb69cf600 (patch)
tree1307688a6d1ba7bb4f9e812f5236dc55e4acf9cd /modules/csg/csg_shape.cpp
parent550f436f8fbea86984a845c821270fba78189143 (diff)
downloadredot-engine-e87e8c048589ae38629e544144ea7cadb69cf600.tar.gz
Improve the CSG shape gizmo drawing
The gizmo colors now depend on the operation. Subtraction will result in an inverted gizmo color, whereas intersection is now displayed as white. A solid translucent overlay is now drawn over a selected node to make it easier to distinguish.
Diffstat (limited to 'modules/csg/csg_shape.cpp')
-rw-r--r--modules/csg/csg_shape.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp
index a496a214fd..0a714dcc6c 100644
--- a/modules/csg/csg_shape.cpp
+++ b/modules/csg/csg_shape.cpp
@@ -557,6 +557,7 @@ void CSGShape::set_operation(Operation p_operation) {
operation = p_operation;
_make_dirty();
+ update_gizmo();
}
CSGShape::Operation CSGShape::get_operation() const {