io_scene_3ds: Update for Blender 3.x #2
@ -249,8 +249,11 @@ class ImageExport(ObjectExport):
|
|||||||
image_width, image_height = get_image_size(self.obj)
|
image_width, image_height = get_image_size(self.obj)
|
||||||
ratio_to_comp = image_width / data['width']
|
ratio_to_comp = image_width / data['width']
|
||||||
scale = ae_transform[6:9]
|
scale = ae_transform[6:9]
|
||||||
scale[0] /= ratio_to_comp
|
if image_height != 0.0:
|
||||||
scale[1] = scale[1] / ratio_to_comp * image_width / image_height
|
scale[1] *= image_width / image_height
|
||||||
|
if ratio_to_comp != 0.0:
|
||||||
|
scale[0] /= ratio_to_comp
|
||||||
|
scale[1] /= ratio_to_comp
|
||||||
|
|
||||||
self.get_prop_keyframe(context, 'position', ae_transform[0:3], time)
|
self.get_prop_keyframe(context, 'position', ae_transform[0:3], time)
|
||||||
self.get_prop_keyframe(context, 'orientation', ae_transform[3:6], time)
|
self.get_prop_keyframe(context, 'orientation', ae_transform[3:6], time)
|
||||||
|
Reference in New Issue
Block a user