trevorsandy / lpub3d

An LDraw™ editor for LEGO® style digital building instructions.
https://trevorsandy.github.io/lpub3d/
130 stars 19 forks source link

Native renderer scrambles submodel when using ignore section after dat files #732

Closed snakebyte73 closed 1 year ago

snakebyte73 commented 1 year ago

Subject

When using 0 !LPUB PART BEGIN IGN in a step after a submodel, the render looks very strange. This behaviour is only when using the native renderer. LDCad view: billede Wrong render: billede

If I move the submodel down below the ignore part everyting looks correct LDCad view: billede Correct render: billede

Environment

Configuration

Logs

Screenshots

billede billede billede billede billede

TestProject 3D.zip

Steps to reproduce

Tell me how to reproduce this issue. add an ignore section with a .dat after adding a .dat in the same step. (see screenshots)

Expected behaviour

The render should look normal

Actual behaviour

The Native render does something strange

Workaround

Put the ignore section as the first thing in the step

Solution suggestion

Share your opinion on how to achieve the expected behaviour

snakebyte73 commented 1 year ago

I forgot to remove the custom parts from the sample file, but the error is the same..

trevorsandy commented 1 year ago

Thank you for reporting this behaviour.

I will take a look.

Cheers,

trevorsandy commented 1 year ago

This behaviour has been corrected.

NativeRendererScrambledSubfile_01

Cheers,