Skip to content

Commit 8231179

Browse files
committed
Merge pull request godotengine#99802 from lander-vr/reflection-probe-wireframe
Fix ReflectionProbe AABB
2 parents 60c6c4a + 11225de commit 8231179

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

editor/plugins/gizmos/reflection_probe_gizmo_plugin.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,6 @@ void ReflectionProbeGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
165165
aabb.position = -size / 2;
166166
aabb.size = size;
167167

168-
for (int i = 0; i < 12; i++) {
169-
Vector3 a, b;
170-
aabb.get_edge(i, a, b);
171-
lines.push_back(a);
172-
lines.push_back(b);
173-
}
174-
175168
for (int i = 0; i < 8; i++) {
176169
Vector3 ep = aabb.get_endpoint(i);
177170
internal_lines.push_back(probe->get_origin_offset());

scene/3d/reflection_probe.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ ReflectionProbe::UpdateMode ReflectionProbe::get_update_mode() const {
185185

186186
AABB ReflectionProbe::get_aabb() const {
187187
AABB aabb;
188-
aabb.position = -origin_offset;
189-
aabb.size = origin_offset + size / 2;
188+
aabb.position = -size / 2;
189+
aabb.size = size;
190190
return aabb;
191191
}
192192

0 commit comments

Comments
 (0)