Fix crash when doing cycles rendering

During F-12 Rendering the passed screen was Null, but decoded as a
number. In stead of a Null a 0 will be send to cycles python wrapper.
This commit is contained in:
Jeroen Bakker 2019-09-12 10:25:39 +02:00
parent 861697c9e5
commit 1e2f2f27e9
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ def create(engine, data, region=None, v3d=None, rv3d=None, preview_osl=False):
data = data.as_pointer()
prefs = bpy.context.preferences.as_pointer()
screen = None
screen = 0
if region:
screen = region.id_data.as_pointer()
region = region.as_pointer()