cheind / pytorch-blender

:sweat_drops: Seamless, distributed, real-time integration of Blender into PyTorch data pipelines
MIT License
562 stars 44 forks source link

fix: enabling the usage of an action of type list #16

Closed Majanao closed 2 years ago

Majanao commented 2 years ago

Hi,

we found out that there is an issue with the action variable. If it is a list instead of an int or float, it raises an error here.

We fixed it by adding np.all() to check for None elements independently of the variable type.

cheind commented 2 years ago

Hey @Majanao, thanks for the PR - looks safe to me. Would you mind basing this PR on the develop branch instead, it shoul d be the default. thanks!

Majanao commented 2 years ago

@cheind Done!

cheind commented 2 years ago

Thanks! I hope blendtorch is useful to you!