io_scene_3ds: Added spotlight aspect and projector #104813

Merged
Sebastian Sille merged 69 commits from :main into main 2023-08-03 00:41:35 +02:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit ed8255c7a6 - Show all commits

View File

@ -1545,6 +1545,8 @@ def save(operator, context, filepath="", scale_factor=1.0, use_scene_unit=False,
unit_measure = 0.000621371
elif unit_length == 'KILOMETERS':
unit_measure = 0.001
elif unit_length == 'FEET':
unit_measure = 3.280839895
elif unit_length == 'INCHES':
unit_measure = 39.37007874
elif unit_length == 'CENTIMETERS':

View File

@ -1479,8 +1479,10 @@ def load_3ds(filepath, context, CONSTRAIN=10.0, UNITS=False, IMAGE_SEARCH=True,
MEASURE = 1609.344
elif unit_length == 'KILOMETERS':
MEASURE = 1000.0
elif unit_length == 'INCHES':
elif unit_length == 'FEET':
MEASURE = 0.3048
elif unit_length == 'INCHES':
MEASURE = 0.0254
elif unit_length == 'CENTIMETERS':
MEASURE = 0.01
elif unit_length == 'MILLIMETERS':