Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/modules/bpy_restrict_state.py
| Context not available. | |||||
| import bpy as _bpy | import bpy as _bpy | ||||
| class _RestrictContext: | class _RestrictContext(object): | ||||
| __slots__ = () | __slots__ = () | ||||
| _real_data = _bpy.data | _real_data = _bpy.data | ||||
| # safe, the pointer never changes | # safe, the pointer never changes | ||||
| Context not available. | |||||
| return self._real_pref | return self._real_pref | ||||
| class _RestrictData: | class _RestrictData(object): | ||||
| __slots__ = () | __slots__ = () | ||||
| Context not available. | |||||
| _data_restrict = _RestrictData() | _data_restrict = _RestrictData() | ||||
| class RestrictBlend: | class RestrictBlend(object): | ||||
| __slots__ = ("context", "data") | __slots__ = ("context", "data") | ||||
| def __enter__(self): | def __enter__(self): | ||||
| Context not available. | |||||