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 bake(engine, depsgraph, obj, pass_type, pass_filter, width, height): import _cycles session = getattr(engine, "session", None) if session is not None: _cycles.bake(engine.session, depsgraph.as_pointer(), obj.as_pointer(), pass_type, pass_filter, width, height)
def bake(engine, obj, pass_type, pixel_array, num_pixels, depth, result): import _cycles if hasattr(engine, "session"): _cycles.bake(engine.session, obj.as_pointer(), pass_type, pixel_array.as_pointer(), num_pixels, depth, result.as_pointer())