/usr/share/blender/scripts/addons/yafaray/ui/__init__.py is in yafaray-exporter 0.1.2+really0.1.2~beta5-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
from . import properties_yaf_render
from . import properties_yaf_camera
from . import properties_yaf_material
from . import properties_yaf_texture
from . import properties_yaf_world
from . import properties_yaf_strand
from . import properties_yaf_object
from . import properties_yaf_light
from bl_ui import properties_object as properties_object
for member in dir(properties_object): # add all "object" panels from blender
subclass = getattr(properties_object, member)
try:
subclass.COMPAT_ENGINES.add('YAFA_RENDER')
except:
pass
del properties_object
from bl_ui import properties_particle as properties_particle
for member in dir(properties_particle): # add all "particle" panels from blender
subclass = getattr(properties_particle, member)
try:
subclass.COMPAT_ENGINES.add('YAFA_RENDER')
except:
pass
del properties_particle
from bl_ui import properties_data_mesh as properties_data_mesh
for member in dir(properties_data_mesh): # add all "object data" panels from blender
subclass = getattr(properties_data_mesh, member)
try:
subclass.COMPAT_ENGINES.add('YAFA_RENDER')
except:
pass
del properties_data_mesh
from bl_ui import properties_data_speaker as properties_data_speaker
for member in dir(properties_data_speaker): # add all "speaker (SOC 2011, pepper branch)" panels from blender
subclass = getattr(properties_data_speaker, member)
try:
subclass.COMPAT_ENGINES.add('YAFA_RENDER')
except:
pass
del properties_data_speaker
# YafaRay did not display the Scene panels anymore, due to addition of COMPAT_ENGINES to them
from bl_ui import properties_scene as properties_scene
for member in dir(properties_scene):
subclass = getattr(properties_scene, member)
try:
subclass.COMPAT_ENGINES.add('YAFA_RENDER')
except:
pass
del properties_scene
|