fix(skin): cache-bust character-assets URLs (#30)
This commit is contained in:
commit
308b183db1
@ -616,7 +616,7 @@ function PlayerCard({ player, isMe, isFriend, isPending, onAddFriend }) {
|
||||
&& window.location.hostname === 'localhost')
|
||||
? 'http://localhost:3000'
|
||||
: 'https://rublox.pro';
|
||||
avatarUrl = `${base}/character-assets/skins/${player.skin}.png`;
|
||||
avatarUrl = `${base}/character-assets/skins/${player.skin}.png?v=20260614`;
|
||||
} else {
|
||||
// Legacy R15: путь по старому шаблону.
|
||||
avatarUrl = `/kubikon-assets/characters/${player.skin}/avatar.png?v=2026_05_27`;
|
||||
|
||||
@ -827,7 +827,7 @@ export class PlayerController {
|
||||
? 'http://localhost:3000'
|
||||
: 'https://rublox.pro';
|
||||
return {
|
||||
file: `${base}/character-assets/skins/${typeId}.glb`,
|
||||
file: `${base}/character-assets/skins/${typeId}.glb?v=20260614`,
|
||||
isR15: false,
|
||||
kind: 'non-humanoid-rigged', // Mixamo-rig, не R15
|
||||
overrides: {},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user