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:
parent
861697c9e5
commit
1e2f2f27e9
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue