Skip to content

Commit

Permalink
fix: sprite rotation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpineda committed Oct 22, 2022
1 parent 093d485 commit 3e80797
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const ActionablePanel = ( props: ActionablePanelProps ) => {
onChange={( evt ) => {
updateActionable( macro, {
...action,
path: [evt.target.value as TargetType],
path: [ evt.target.value as TargetType ],
} );
}}
value={action.path[0]}>
Expand Down
3 changes: 1 addition & 2 deletions src/renderer/core/model-effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const applyRenderModeToSprite = (
sprite: SpriteType,
terrainY: number
) => {
sprite.rotation.x = 0;
if ( modelSetModifiers.sprites[spriteTypeId] ) {
for ( const effect of modelSetModifiers.sprites[spriteTypeId] ) {
switch ( effect.type ) {
Expand All @@ -29,8 +30,6 @@ export const applyRenderModeToSprite = (
sprite.rotation.x = -Math.PI / 2;
sprite.position.y = terrainY + 0.1;
break;
default:
sprite.rotation.set( 0, 0, 0 );
}
}
}
Expand Down

0 comments on commit 3e80797

Please sign in to comment.