Skip to content

Commit

Permalink
Fixed issue in Issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
kenohori committed Jan 11, 2017
1 parent 1dc4021 commit b2b946c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MetalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,9 @@ class MetalView: MTKView {
if parsedObject.id == rowObject.id {

// Compute centroid
if parsedObject.triangleBuffersByType[""] == nil {
return
}
let numberOfVertices = parsedObject.triangleBuffersByType[""]!.count/6
var sumX: Float = 0.0
var sumY: Float = 0.0
Expand Down

0 comments on commit b2b946c

Please sign in to comment.