Blender Git Loki

Git Commits -> Revision f5217af

Revision f5217af by Joshua Leung (master)
February 16, 2011, 01:46 (GMT)
Ugly hack to get PoseLib UI working ok (problem mentioned in log for
r34883).

Full description:
When defining an operator button in the UI layout code, trying to set
the value for such an operator's enum properties, where said enum uses
a dynamically generated list of items (which depends on using context
info), will "fail". No context info will be passed to the callbacks
used to generate this list of items, as PROP_ENUM_NO_CONTEXT is still
set on the operator properties (it seems these will only get cleared
when the operator actually runs, which is far too late already for
this usage) so RNA_property_enum_items() will pass NULL instead of a
context pointer *even* when one exists!

I'm not sure of why we even need this flag. It seems to have caused a
few other rounds of problems already, from quick searches I did on
this matter...

Commit Details:

Full Hash: f5217afd1836c3fc34e0c8220d5f230295c456da
SVN Revision: 34885
Parent Commit: c39aba0
Lines Changed: +4, -0

1 Modified Path:

/source/blender/python/intern/bpy_rna.c (+4, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021