trevorsandy / lpub3d

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

Parts in PLI are not always drawn on model #780

Open ReneFrijhoff opened 5 hours ago

ReneFrijhoff commented 5 hours ago

Summary

Parts in the PLI are not always drawn in the model

LPub3D Version

Runtime Environment

Steps to Reproduce

  1. Load the model
  2. Go to page 48, step to next page

Expected Behavior

Model should be completely drawn

Actual Behavior

Model is only drawn for previous step without the additional part

Output or example Input

image image image

trevorsandy commented 4 hours ago

Thank you for reporting this behaviour. I'll take a look.

If you want to put your attachments within the <details></details> tags, do it like this:

**Output or example Input**<details>

![image](https://github.com/user-attachments/assets/c3bcd65e-6501-42ee-b76b-5454b85cddc7)
![image](https://github.com/user-attachments/assets/05d5176f-192c-4f02-8f3e-d5fc479ea6df)
![image](https://github.com/user-attachments/assets/74640ef6-dc10-4e44-88c7-3321b600ffff)

</details>

And if you want to attach some Model file example content, do it like this:

**Output or example Input**<details>
~~~
0 FILE uss_deadalus.ldr
0 USS Deadalus
0 Name: uss_deadalus.ldr
0 Author: Nicolai Jetzinger
0 USS Deadalus Star Gate Atlantis
0 Model and instructions modifications: Rene Frijhoff
0 Lpub3d pages: 1041
0 Lpub3d page: 1
0 !LPUB FINAL_MODEL_ENABLED GLOBAL FALSE
0 !LPUB BOM ANNOTATE FONT GLOBAL "Arial,12,-1,5,50,0,0,0,0,0,Regular"
0 !LPUB BOM PART_ELEMENTS BRICKLINK GLOBAL TRUE
~~~
</details>

You can also mix both attachments and model file content like this:

**Output or example Input**<details>
~~~
0 FILE uss_deadalus.ldr
0 USS Deadalus
0 Name: uss_deadalus.ldr
0 Author: Nicolai Jetzinger
0 USS Deadalus Star Gate Atlantis
0 Model and instructions modifications: Rene Frijhoff
0 Lpub3d pages: 1041
0 Lpub3d page: 1
0 !LPUB FINAL_MODEL_ENABLED GLOBAL FALSE
0 !LPUB BOM ANNOTATE FONT GLOBAL "Arial,12,-1,5,50,0,0,0,0,0,Regular"
0 !LPUB BOM PART_ELEMENTS BRICKLINK GLOBAL TRUE
~~~

![image](https://github.com/user-attachments/assets/c3bcd65e-6501-42ee-b76b-5454b85cddc7)
![image](https://github.com/user-attachments/assets/05d5176f-192c-4f02-8f3e-d5fc479ea6df)
![image](https://github.com/user-attachments/assets/74640ef6-dc10-4e44-88c7-3321b600ffff)

</details>

The attachment result will be this:

Output or example Input

image image image

And the Model file example content result will be this:

Output or example Input

0 FILE uss_deadalus.ldr
0 USS Deadalus
0 Name: uss_deadalus.ldr
0 Author: Nicolai Jetzinger
0 USS Deadalus Star Gate Atlantis
0 Model and instructions modifications: Rene Frijhoff
0 Lpub3d pages: 1041
0 Lpub3d page: 1
0 !LPUB FINAL_MODEL_ENABLED GLOBAL FALSE
0 !LPUB BOM ANNOTATE FONT GLOBAL "Arial,12,-1,5,50,0,0,0,0,0,Regular"
0 !LPUB BOM PART_ELEMENTS BRICKLINK GLOBAL TRUE

Cheers,