Cycles Bake
[blender-staging.git] / intern / cycles / blender / addon / engine.py
index 3f15e232de774a6803b7284abe63aa422d7e6617..25a9e97a99b19b238bfb17a5cabb4a3bebc2a2de 100644 (file)
@@ -59,6 +59,12 @@ def render(engine):
         _cycles.render(engine.session)
 
 
+def bake(engine, obj, pass_type, pixel_array, num_pixels, depth, result):
+    import _cycles
+    session = getattr(engine, "session", None)
+    if session is not None:
+        _cycles.bake(engine.session, obj.as_pointer(), pass_type, pixel_array.as_pointer(), num_pixels, depth, result.as_pointer())
+
 def reset(engine, data, scene):
     import _cycles
     data = data.as_pointer()
@@ -88,3 +94,8 @@ def available_devices():
 def with_osl():
     import _cycles
     return _cycles.with_osl
+
+
+def with_network():
+    import _cycles
+    return _cycles.with_network