Skip to content

Commit

Permalink
bugfix for disabled collection/different render layers
Browse files Browse the repository at this point in the history
  • Loading branch information
samytichadou authored Jul 8, 2019
1 parent d668849 commit 91a7005
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions functions/update_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ def update_change_font(self, context) :
if active.type == 'FONT' and not active.select_get() and not active.data.fontselector_avoid_changes :
selected.append(active)
for obj in scn.objects :
if obj.select_get() and obj.type == 'FONT' and not active.data.fontselector_avoid_changes :
selected.append(obj)
try :
if obj.select_get() and obj.type == 'FONT' and not active.data.fontselector_avoid_changes :
selected.append(obj)
except RuntimeError :
pass

#blender font exception
if fontlist[idx].name == 'Bfont' :
Expand Down Expand Up @@ -125,4 +128,4 @@ def update_change_font_strip(self, context) :
change_font_strip(strip, font)

#reset global variable
first_active_object = ""
first_active_object = ""

0 comments on commit 91a7005

Please sign in to comment.