Skip to content

Commit cd8c158

Browse files
committed
Add no-op set_keyframe() to AbstractBaseNode
The test manager calls set_keyframe() on all nodes, but it was only defined on AssemblyNode. This caused 'solid root test' to fail on LeafNode subclasses like Solid2Node with AttributeError.
1 parent 04f0b1b commit cd8c158

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

solid_node/node/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ def get_source_file(self):
135135
def time(self):
136136
raise NotImplementedError
137137

138+
def set_keyframe(self, time):
139+
"""Set a fixed time for keyframes and tests.
140+
No-op for non-animated nodes; overridden by AssemblyNode."""
141+
pass
142+
138143
def assemble(self, root=None):
139144
"""Renders this node and returns an optimized version
140145
with all operations applied"""

0 commit comments

Comments
 (0)