2
# Copyright 2011, Blender Foundation.
4
# This program is free software; you can redistribute it and/or
5
# modify it under the terms of the GNU General Public License
6
# as published by the Free Software Foundation; either version 2
7
# of the License, or (at your option) any later version.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software Foundation,
16
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
"name": "Cycles Render Engine",
26
"location": "Info header, render engine menu",
27
"description": "Cycles Render Engine integration.",
29
"wiki_url": "http://wiki.blender.org/index.php/Dev:2.6/Source/Render/Cycles",
31
"support": 'OFFICIAL',
35
from . import ui, properties, engine, presets
38
class CyclesRender(bpy.types.RenderEngine):
40
bl_label = "Cycles Render"
41
bl_use_shading_nodes = True
51
def update(self, data, scene):
52
engine.create(self, data, scene)
53
engine.update(self, data, scene)
55
def render(self, scene):
59
# def preview_update(self, context, id):
62
# def preview_render(self):
66
def view_update(self, context):
68
engine.create(self, context.blend_data, context.scene,
69
context.region, context.space_data, context.region_data)
70
engine.update(self, context.blend_data, context.scene)
72
def view_draw(self, context):
73
engine.draw(self, context.region, context.space_data, context.region_data)
80
bpy.utils.register_module(__name__)
85
properties.unregister()
87
bpy.utils.unregister_module(__name__)