Removed find_block_from_address() in favour of dereference_pointer()

This commit is contained in:
Sybren A. Stüvel
2018-03-08 11:08:36 +01:00
parent 9c9323b170
commit 9af913d69a
2 changed files with 3 additions and 10 deletions
+3 -1
View File
@@ -11,7 +11,9 @@ def listbase(block: BlendFileBlock, next_path: FieldPath = b'next') \
while block:
yield block
next_ptr = block[next_path]
block = block.bfile.find_block_from_address(next_ptr)
if next_ptr == 0:
break
block = block.bfile.dereference_pointer(next_ptr)
def sequencer_strips(sequence_editor: BlendFileBlock) \