mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Editor: Improve capsule gizmos
This commit is contained in:
parent
4b36c0491e
commit
02eab5e2c4
4 changed files with 64 additions and 63 deletions
|
|
@ -222,7 +222,7 @@ Variant CSGShape3DGizmoPlugin::get_handle_value(const EditorNode3DGizmo *p_gizmo
|
|||
|
||||
if (Object::cast_to<CSGCylinder3D>(cs)) {
|
||||
CSGCylinder3D *s = Object::cast_to<CSGCylinder3D>(cs);
|
||||
return p_id == 0 ? s->get_radius() : s->get_height();
|
||||
return Vector2(s->get_radius(), s->get_height());
|
||||
}
|
||||
|
||||
if (Object::cast_to<CSGTorus3D>(cs)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue