Fix #35251: cycles crash rendering with a particular user preferences configuration.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 11 Jun 2013 12:52:02 +0000 (12:52 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 11 Jun 2013 12:52:02 +0000 (12:52 +0000)
intern/cycles/blender/blender_python.cpp

index 9600340a1f3e5ade0add85adfa5375a5508a7d97..9a86cee654690e574f03fe0ca9ecb1f0c50b88bf 100644 (file)
@@ -63,7 +63,7 @@ static PyObject *create_func(PyObject *self, PyObject *args)
        BL::RenderEngine engine(engineptr);
 
        PointerRNA userprefptr;
-       RNA_id_pointer_create((ID*)PyLong_AsVoidPtr(pyuserpref), &userprefptr);
+       RNA_pointer_create(NULL, &RNA_UserPreferences, (void*)PyLong_AsVoidPtr(pyuserpref), &userprefptr);
        BL::UserPreferences userpref(userprefptr);
 
        PointerRNA dataptr;