Blender Git Loki

Git Commits -> Revision 0910932

Revision 0910932 by Dalai Felinto (master)
May 21, 2019, 22:24 (GMT)
Remove "_base*" from context API

We are not exposing RNA_ObjectBase in the 2.80 API.

Thus we can't have operators relying on it (e.g, CTX_data_visible_bases,
CTX_data_active_base, ...). Otherwise users won't be able to override
context for these operators.

This commit keep the CTX_data_.*bases() functions around so we don't
need to change the operators and potentially break things that late into
2.80. However as far as the Python scripters are concerned there is no
base to be overriden, ever.

That also simplify the guessing game addon developers have to play when
trying to override an operatori context. They still need to find whether an
operator requires editables, visibles, selected, ... objects. But at
least they don't need to find out whether the operators need base or
object.

Commit Details:

Full Hash: 0910932e71d2b869e0f9d4289d89f20c64beabaa
Parent Commit: 58a75d0
Lines Changed: +48, -65

2 Modified Paths:

/source/blender/blenkernel/intern/context.c (+48, -6) (Diff)
/source/blender/editors/screen/screen_context.c (+0, -59) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021