GLTFImporter: fix crash when no material matches
Don't call renameFromJson(jsonObj, mat) with a nullptr mat.
Fixes: QTBUG-100386
Pick-to: 6.5 6.6
Change-Id: Ib35cd34212db6a309f629eabc93c19a69957eaf7
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| commit | 670144a660823238ca286d5b631c9e1ae7dd8f00 |
| parent | 1ef8b39dd9357aae347650937d730e3d29696807 |
| author | Aurélien Brooke <aurelien@bahiasoft.fr> |
| committer | Aurélien Brooke <aurelien@bahiasoft.fr> |
| commit time | Fri, 21 Jul 2023 10:39:08 +0000 |