mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user