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:
@@ -139,7 +139,7 @@ def create(engine, data, region=None, v3d=None, rv3d=None, preview_osl=False):
|
|||||||
|
|
||||||
data = data.as_pointer()
|
data = data.as_pointer()
|
||||||
prefs = bpy.context.preferences.as_pointer()
|
prefs = bpy.context.preferences.as_pointer()
|
||||||
screen = None
|
screen = 0
|
||||||
if region:
|
if region:
|
||||||
screen = region.id_data.as_pointer()
|
screen = region.id_data.as_pointer()
|
||||||
region = region.as_pointer()
|
region = region.as_pointer()
|
||||||
|
Reference in New Issue
Block a user