diff --git a/src/views/pet-image/PetImageView.tsx b/src/views/pet-image/PetImageView.tsx index 4964f43b..948a1b8e 100644 --- a/src/views/pet-image/PetImageView.tsx +++ b/src/views/pet-image/PetImageView.tsx @@ -5,7 +5,7 @@ import { PetImageViewProps } from './PetImageView.types'; export const PetImageView: FC = props => { - const { figure = '', typeId = -1, paletteId = -1, color = 0xFFFFFF, customParts = [], headOnly = false, direction = 0, scale = 1 } = props; + const { figure = '', typeId = -1, paletteId = -1, color = 0xFFFFFF, customParts = [], posture = 'std', headOnly = false, direction = 0, scale = 1 } = props; const [ petUrl, setPetUrl ] = useState(null); @@ -38,7 +38,7 @@ export const PetImageView: FC = props => { } - }, headOnly, 0, petCustomParts, 'std'); + }, headOnly, 0, petCustomParts, posture); if(imageResult) { @@ -48,7 +48,7 @@ export const PetImageView: FC = props => } return url; - }, [ figure, typeId, paletteId, color, customParts, headOnly, direction ]); + }, [ figure, typeId, paletteId, color, customParts, posture, headOnly, direction ]); useEffect(() => { diff --git a/src/views/pet-image/PetImageView.types.ts b/src/views/pet-image/PetImageView.types.ts index f86d32a3..4acd4ac5 100644 --- a/src/views/pet-image/PetImageView.types.ts +++ b/src/views/pet-image/PetImageView.types.ts @@ -7,6 +7,7 @@ export interface PetImageViewProps paletteId?: number; color?: number; customParts?: PetCustomPart[]; + posture?: string; headOnly?: boolean; direction?: number; scale?: number;