1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

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.
This commit is contained in:
Hugo Locurcio
2019-07-05 08:13:12 +02:00
parent 550f436f8f
commit e87e8c0485
2 changed files with 50 additions and 3 deletions

View File

@@ -557,6 +557,7 @@ void CSGShape::set_operation(Operation p_operation) {
operation = p_operation;
_make_dirty();
update_gizmo();
}
CSGShape::Operation CSGShape::get_operation() const {