Skip to content

Unable to read extradir when using savesnapshot in command-line mode. #96

Open
@TheDeadCalledLu

Description

@TheDeadCalledLu

Description:
When using LDView in command-line mode with the savesnapshot option, parts stored in the extradir folder are not rendered in the output image, resulting in a blank or incomplete snapshot. This issue also affects the exportfile functionality.

Example:

I have a part my_part.dat stored in the extradir folder.
This part is referenced in a file 123.ldr with the line: 1 378 0 0 0 0 0 -1 0 1 0 1 0 0 my_part.dat.
The extradir parameter is correctly set in LDView.
When opening 123.ldr using the LDView GUI, everything renders correctly.
When running LDView in command-line mode with .\ldview 123.ldr, the rendering is also correct.
However, when using .\ldview 123.ldr savesnapshot="123.png", the generated image is blank.
The same issue occurs with the exportfile option.

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