Browse Source

Update models_mesh_picking.c

Ray 4 năm trước cách đây
mục cha
commit
0565fb9fb6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/models/models_mesh_picking.c

+ 1 - 1
examples/models/models_mesh_picking.c

@@ -197,7 +197,7 @@ int main(void)
                                     collision.normal.y,
                                     collision.normal.z), 10, ypos + 30, 10, BLACK);
 
-                if (triHitInfo.hit && strcmp(hitObjectName, "Triangle") == 0)
+                if (triHitInfo.hit && TextIsEqual(hitObjectName, "Triangle"))
                     DrawText(TextFormat("Barycenter: %3.2f %3.2f %3.2f",  bary.x, bary.y, bary.z), 10, ypos + 45, 10, BLACK);
             }