Skip to content

Commit

Permalink
fixed a bug with Blender 2.83
Browse files Browse the repository at this point in the history
  • Loading branch information
snuq committed Aug 14, 2020
1 parent fbf1969 commit dd7fe54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Snu Slideshow Generator For Blender 2.81
# Snu Slideshow Generator For Blender 2.83

This addon for Blender assists in creation of high quality slideshows. The aim is to be easy to use, but with many customization features if you want to dig under the surface.

Expand Down
9 changes: 4 additions & 5 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# aspect ratio isnt detected properly for videos with non-square pixels... not sure how to detect this.



import bpy
import random
import glob
Expand All @@ -35,8 +34,8 @@
"name": "Snu Slideshow Generator",
"description": "Assists in creating image slideshows with a variety of options.",
"author": "Hudson Barkley (Snu)",
"version": (0, 8, 2),
"blender": (2, 81, 0),
"version": (0, 8, 3),
"blender": (2, 83, 0),
"location": "3D View Sideobar, 'Slideshow' tab.",
"wiki_url": "https://github.com/snuq/SnuSlideshowGenerator",
"category": "Import-Export"
Expand Down Expand Up @@ -475,7 +474,7 @@ def import_slideshow_image(image, image_number, slide_length, generator_scene, v

def add_constraints(constraint_object, constraint_type):
#This function handles adding constraints to the various objects of the slideshow generator scene
bpy.context.view_layer.objects.active = constraint_object
#bpy.context.view_layer.objects.active = constraint_object
rotation_constraint = constraint_object.constraints.new(type='LIMIT_ROTATION')
location_constraint = constraint_object.constraints.new(type='LIMIT_LOCATION')
scale_constraint = constraint_object.constraints.new(type='LIMIT_SCALE')
Expand Down Expand Up @@ -2450,7 +2449,7 @@ def execute(self, context):
scene_object.select_set(True)
else:
scene_object.select_set(False)
context.view_layer.objects.active = active
#context.view_layer.objects.active = active

return{'FINISHED'}

Expand Down

0 comments on commit dd7fe54

Please sign in to comment.