fix(skin): cache-bust character-assets URLs #30

Merged
min merged 1 commits from feat/crouch-animations-fullscreen-2026-06-14 into main 2026-06-14 13:43:19 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -616,7 +616,7 @@ function PlayerCard({ player, isMe, isFriend, isPending, onAddFriend }) {
&& window.location.hostname === 'localhost') && window.location.hostname === 'localhost')
? 'http://localhost:3000' ? 'http://localhost:3000'
: 'https://rublox.pro'; : 'https://rublox.pro';
avatarUrl = `${base}/character-assets/skins/${player.skin}.png`; avatarUrl = `${base}/character-assets/skins/${player.skin}.png?v=20260614`;
} else { } else {
// Legacy R15: путь по старому шаблону. // Legacy R15: путь по старому шаблону.
avatarUrl = `/kubikon-assets/characters/${player.skin}/avatar.png?v=2026_05_27`; avatarUrl = `/kubikon-assets/characters/${player.skin}/avatar.png?v=2026_05_27`;

View File

@ -827,7 +827,7 @@ export class PlayerController {
? 'http://localhost:3000' ? 'http://localhost:3000'
: 'https://rublox.pro'; : 'https://rublox.pro';
return { return {
file: `${base}/character-assets/skins/${typeId}.glb`, file: `${base}/character-assets/skins/${typeId}.glb?v=20260614`,
isR15: false, isR15: false,
kind: 'non-humanoid-rigged', // Mixamo-rig, не R15 kind: 'non-humanoid-rigged', // Mixamo-rig, не R15
overrides: {}, overrides: {},