[Blender Export][Fixed] Extra space in light type names

Fixes #505
This commit is contained in:
Salvador E. Tropea 2023-10-09 06:40:19 -03:00
parent d0c489e2cc
commit d67f7aa3b4
4 changed files with 4 additions and 3 deletions

View File

@ -60,6 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Blender export:
- Rotations are now applied to the current view, not just the top view
- Board/components not visible for small boards (See #484)
- Light type names (extra space) (#505)
- update_xml with check_pcb_parity enabled:
- Avoid errors for KiCad 6 using "Exclude from BoM" components.
This limitation isn't found on KiCad 7. (#486)

View File

@ -152,7 +152,7 @@ outputs:
pos_y: 0
# [number|string] Z position [m]. You can use `width`, `height` and `size` for PCB dimensions
pos_z: 0
# [string='POINT'] [POINT, SUN, SPOT, HEMI, AREA] Type of light. SUN lights will illuminate more evenly
# [string='POINT'] [POINT,SUN,SPOT,HEMI,AREA] Type of light. SUN lights will illuminate more evenly
type: 'POINT'
# [dict|list(dict)] Outputs to generate in the same run
outputs:

View File

@ -135,7 +135,7 @@ Parameters:
- ``pos_x`` :index:`: <pair: output - blender_export - options - light; pos_x>` [number|string] X position [m]. You can use `width`, `height` and `size` for PCB dimensions.
- ``pos_y`` :index:`: <pair: output - blender_export - options - light; pos_y>` [number|string] Y position [m]. You can use `width`, `height` and `size` for PCB dimensions.
- ``pos_z`` :index:`: <pair: output - blender_export - options - light; pos_z>` [number|string] Z position [m]. You can use `width`, `height` and `size` for PCB dimensions.
- ``type`` :index:`: <pair: output - blender_export - options - light; type>` [string='POINT'] [POINT, SUN, SPOT, HEMI, AREA] Type of light. SUN lights will illuminate more evenly.
- ``type`` :index:`: <pair: output - blender_export - options - light; type>` [string='POINT'] [POINT,SUN,SPOT,HEMI,AREA] Type of light. SUN lights will illuminate more evenly.
- ``outputs`` :index:`: <pair: output - blender_export - options; outputs>` [dict|list(dict)] Outputs to generate in the same run.

View File

@ -124,7 +124,7 @@ class BlenderLightOptions(BlenderObjOptions):
super().__init__()
with document:
self.type = "POINT"
""" [POINT, SUN, SPOT, HEMI, AREA] Type of light. SUN lights will illuminate more evenly """
""" [POINT,SUN,SPOT,HEMI,AREA] Type of light. SUN lights will illuminate more evenly """
self.energy = 0
""" How powerful is the light. Using 0 for POINT and SUN KiBot will try to use something useful """
self.add_to_doc('name', ' light', with_nl=False)