Remove usage WITH_CYCLES_CUDA_BINARIES in code, use check for
[blender.git] / intern / cycles / blender / addon / __init__.py
index dddf7bafb1460067b9a113d6226078ba943e3af3..39871bc22898a4cef6cfd0e0fc977b4c8d26ab42 100644 (file)
@@ -40,7 +40,6 @@ class CyclesRender(bpy.types.RenderEngine):
     bl_use_shading_nodes = True
 
     def __init__(self):
-        engine.init()
         self.session = None
 
     def __del__(self):
@@ -88,6 +87,8 @@ def register():
     from . import properties
     from . import presets
 
+    engine.init()
+
     properties.register()
     ui.register()
     presets.register()