Bounding Box rendering for Mesh objects is now fixed: used to be the objects were all drawn on the original Mesh instead of its copies.

This commit is contained in:
2018-12-10 09:53:13 -06:00
parent 6a5d45ba14
commit 3ed09dd930
2 changed files with 83 additions and 55 deletions

View File

@@ -15,7 +15,6 @@ class IMICFPS
if object.visible && object.renderable
# Render bounding boxes before transformation is applied
@bounding_box_renderer.create_bounding_box(object, object.model.bounding_box, object.debug_color, object.object_id) if $debug
object.model.objects.each {|o| @bounding_box_renderer.create_bounding_box(object, o.bounding_box, o.debug_color, o.object_id)} if $debug
@opengl_renderer.draw_object(object)
end