diff --git a/python2.7libs/eg_clearOGL.py b/python2.7libs/eg_clearOGL.py index a68636a..dd046c0 100644 --- a/python2.7libs/eg_clearOGL.py +++ b/python2.7libs/eg_clearOGL.py @@ -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"""