Fixed faces counting bug when removing bb

This commit is contained in:
2018-12-09 21:20:53 -06:00
parent 7271c0e4a1
commit 6a5d45ba14

View File

@@ -189,7 +189,10 @@ class IMICFPS
glPopMatrix glPopMatrix
found = ObjectManager.objects.detect { |o| o == bounding_box[:object] } found = ObjectManager.objects.detect { |o| o == bounding_box[:object] }
@bounding_boxes.delete(key) unless found unless found
@vertex_count -= @bounding_boxes[key][:vertices_size]
@bounding_boxes.delete(key)
end
end end
end end