Explorar o código

Update models_mesh_picking.c

Ray %!s(int64=4) %!d(string=hai) anos
pai
achega
0565fb9fb6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
             }