Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
uhlik committed Mar 21, 2020
1 parent 9e2938b commit 29ca4c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion io_import_photoscan_cameras.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,8 @@ def execute(self, context):
ps = bpy.context.scene.import_photoscan_cameras
if(ps.align_to_active):
ao = context.view_layer.objects.active
m = ao.matrix_world.copy()
if(ao is not None):
m = ao.matrix_world.copy()
ed = {'TIFF': ".tiff", 'TIFF2': ".tif", 'JPEG': ".jpg", 'JPEG2': ".jpeg", 'PNG': ".png", 'BMP': ".bmp", 'OPENEXR': ".exr", 'TARGA': ".tga", }
e = ed[ps.image_extension]
d = {'xml_path': os.path.realpath(bpy.path.abspath(ps.xml_path)),
Expand Down

0 comments on commit 29ca4c8

Please sign in to comment.