Blender Git Loki

Git Commits -> Revision 3255012

Revision 3255012 by Sybren A. Stüvel (master)
July 12, 2019, 12:18 (GMT)
Fix AttributeError in mesh properties panel when mesh is pinned

When a mesh datablock is pinned in the properties panel,
`context.object` is `None`. This in turn causes `obj.mode` to raise an
`AttributeError` exception as `None.mode` doesn't exist.

Since there is no (fast/simple) way to check whether the owning object
is in edit mode or not, the properties will be disabled. Not ideal, but
better than spewing an exception on every panel draw.

Reviewed By: campbellbarton, brecht

Differential Revision: https://developer.blender.org/D5237

Commit Details:

Full Hash: 325501247d88647fd2457f9fc02209aadc6a52f1
Parent Commit: 439777f
Lines Changed: +1, -1

1 Modified Path:

/release/scripts/startup/bl_ui/properties_data_mesh.py (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021