diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 18:05:29 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 18:05:29 +0100 |
| commit | b0551912a4d31c1f92e2a86509aad0f9e1510f8f (patch) | |
| tree | b38344d20c803e17f71d662835f93df98087fea6 /src/studio.cpp | |
| parent | Chams: tint through $color/$color2 and log the chosen material (diff) | |
| download | hl2h-b0551912a4d31c1f92e2a86509aad0f9e1510f8f.tar.gz hl2h-b0551912a4d31c1f92e2a86509aad0f9e1510f8f.zip | |
Chams: quiet material lookup, accept any fallback by name
FindMaterial diagnostics are no longer logged per attempt; the chosen material
is logged once. Accept any candidate name returned by FindMaterial, not just
debugwhite.
Diffstat (limited to '')
| -rw-r--r-- | src/studio.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/studio.cpp b/src/studio.cpp index d472fbc..a1aae12 100644 --- a/src/studio.cpp +++ b/src/studio.cpp | |||
| @@ -204,10 +204,8 @@ void *chams_material() { | |||
| 204 | return g_chams_mat; | 204 | return g_chams_mat; |
| 205 | g_chams_mat_tried = true; | 205 | g_chams_mat_tried = true; |
| 206 | g_chams_mat = world_find_material("models/debug/debugwhite"); | 206 | g_chams_mat = world_find_material("models/debug/debugwhite"); |
| 207 | if (g_chams_mat) | 207 | if (!g_chams_mat) |
| 208 | logf("chams: material models/debug/debugwhite = %p", g_chams_mat); | 208 | logf("chams: no usable material"); |
| 209 | else | ||
| 210 | logf("chams: models/debug/debugwhite not found"); | ||
| 211 | return g_chams_mat; | 209 | return g_chams_mat; |
| 212 | } | 210 | } |
| 213 | 211 | ||
