Cycles Bake
[blender-staging.git] / intern / cycles / blender / addon / engine.py
index b9ce65588df939a2a1bc5ab3fa53c202953a4535..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()