Blender Git Commit Log

Git Commits -> Revision 952212a

Revision 952212a by Campbell Barton (master)
September 13, 2020, 05:49 (GMT)
Fix printing data from an evaluated depsgraph in Python

Printing an evaluated view layer would show:
Evaluated Scene 'Scene'

- Now __repr__ uses the __str__ fallback for evaluated data,
as done in other situations where we can't create a string that
would evaluate to the data.
- __str__ now shows when the data is evaluated.
- __str__ always includes the memory address
(which was previously only shown for structs without a name).

Commit Details:

Full Hash: 952212ac69a5d1d16f9fac7ab19456c256382d97
Parent Commit: ca39325
Lines Changed: +21, -11

1 Modified Path:

/source/blender/python/intern/bpy_rna.c (+21, -11) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021