pico: detect intentional material name and do not replace them with texture 187/head
authorThomas Debesse <dev@illwieckz.net>
Thu, 23 Dec 2021 14:41:24 +0000 (15:41 +0100)
committerThomas Debesse <dev@illwieckz.net>
Thu, 23 Dec 2021 14:41:24 +0000 (15:41 +0100)
commit9b5a8aa89264f2b47552741a3b0abb66c6408a86
tree22f65ac988719f15d82430f8862cda23efcfe0e2
parent9001168c233c5a32ea3b99e8974ff4659c465005
pico: detect intentional material name and do not replace them with texture

Detect intentional material name to not replace it with texture name.

Reimplement commits by Garux:
https://github.com/Garux/netradiant-custom/commit/1bd3e7ae186b55fb61e3738d2493432c0b1f5a7b
https://github.com/Garux/netradiant-custom/commit/ea21eee2254fb2e667732d8f1b0f83c439a89bfa

This attempts to restore proper material behaviour when the mapper knows what he is doing,
also called Julius' case or correct case because Julius is always correctâ„¢
while keeping the fallback for other situations, also called newbie's case
which may be compatible with third-party tools not following Quake 3 conventions.

See: https://gitlab.com/xonotic/netradiant/-/merge_requests/179#note_777324051

<3 @julius__ @Garux
libs/picomodel/picointernal.c