Skip to content

Commit

Permalink
Clear OpenGL Attributes fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
elmar committed Mar 17, 2020
1 parent bfdaf1d commit 3f9096d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions python2.7libs/eg_clearOGL.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,15 @@ def clear_ogl(self):
for mb in self.nodes:
if mb.type().name() == "redshift_vopnet":
parms = mb.parms()
for p in parms:
p.deleteAllKeyframes()
for p in reversed(parms):
if p is not None:
p.deleteAllKeyframes()
pt = p.tuple()
if pt:
pt.revertToAndRestorePermanentDefaults()




def display_message(self):
"""Displays the Count of Created Materials to the User"""
Expand Down

0 comments on commit 3f9096d

Please sign in to comment.