Make Camera3D gizmo clickable

(cherry picked from commit ca9063fe4ecbf261768d9e21fb0fb5d83bb2dfa8)
This commit is contained in:
Haoyu Qiu 2022-10-29 12:38:21 +08:00 committed by Relintai
parent 43cb6e940a
commit 6484327489

View File

@ -1975,6 +1975,7 @@ void CameraSpatialGizmoPlugin::redraw(EditorSpatialGizmo *p_gizmo) {
#undef ADD_QUAD #undef ADD_QUAD
p_gizmo->add_lines(lines, material); p_gizmo->add_lines(lines, material);
p_gizmo->add_collision_segments(lines);
p_gizmo->add_handles(handles, get_material("handles")); p_gizmo->add_handles(handles, get_material("handles"));
ClippedCamera *clipcam = Object::cast_to<ClippedCamera>(camera); ClippedCamera *clipcam = Object::cast_to<ClippedCamera>(camera);