Skip to content

Custom scale doesn't apply to ASS files #62

@jadshep

Description

@jadshep

Whenever I've tried to use a custom scale with level structures I've noticed that everything comes out the expected size, but with the wrong positions. After a very quick look I've found this section:

if file_type == 'JMS':
scale_x = Matrix.Scale(custom_scale, 4, (1, 0, 0))
scale_y = Matrix.Scale(custom_scale, 4, (0, 1, 0))
scale_z = Matrix.Scale(custom_scale, 4, (0, 0, 1))
scale_matrix = scale_x @ scale_y @ scale_z
position = position @ scale_matrix

If I change the if to include 'ASS':
if file_type == 'JMS' or file_type == 'ASS':

It seems to work as expected (at least for my simple test scene). I'm not sure if this breaks something else or if it's the only section of code that needs changing to fully fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions