diff options
Diffstat (limited to 'intern/cycles/blender/addon/__init__.py')
-rw-r--r-- | intern/cycles/blender/addon/__init__.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/intern/cycles/blender/addon/__init__.py b/intern/cycles/blender/addon/__init__.py index dddf7bafb14..36fb5c0418d 100644 --- a/intern/cycles/blender/addon/__init__.py +++ b/intern/cycles/blender/addon/__init__.py @@ -34,13 +34,13 @@ import bpy from . import engine + class CyclesRender(bpy.types.RenderEngine): bl_idname = 'CYCLES' bl_label = "Cycles Render" bl_use_shading_nodes = True def __init__(self): - engine.init() self.session = None def __del__(self): @@ -69,7 +69,7 @@ class CyclesRender(bpy.types.RenderEngine): def view_update(self, context): if not self.session: engine.create(self, context.blend_data, context.scene, - context.region, context.space_data, context.region_data) + context.region, context.space_data, context.region_data) engine.update(self, context.blend_data, context.scene) def view_draw(self, context): @@ -88,6 +88,8 @@ def register(): from . import properties from . import presets + engine.init() + properties.register() ui.register() presets.register() @@ -103,4 +105,3 @@ def unregister(): properties.unregister() presets.unregister() bpy.utils.unregister_module(__name__) - |