Blender Git Commit Log

Git Commits -> Revision 945007b

Revision 945007b by Germano Cavalcante (master)
January 2, 2019, 12:01 (GMT)
Fix T59773: Raise exception if the gpu module is used in backgound mode.

Instead of crashing, an error message is displayed if a function of the gpu module is called without a GPU context.

Reviewers: brecht, campbellbarton, JacquesLucke, mont29

Subscribers: abdelmatinboulbayam, amir.shehata

Differential Revision: https://developer.blender.org/D4143

Commit Details:

Full Hash: 945007b32e9a30252216398413bff88c103d8667
Parent Commit: c862c14
Lines Changed: +224, -239

2 Added Paths:

/source/blender/python/gpu/gpu_py.c (+165, -0) (View)
/source/blender/python/gpu/gpu_py.h (+34, -0) (View)

4 Deleted Paths:

/source/blender/python/gpu/gpu_py_api.c (+0, -85)
/source/blender/python/gpu/gpu_py_api.h (+0, -30)
/source/blender/python/gpu/gpu_py_primitive.c (+0, -81)
/source/blender/python/gpu/gpu_py_primitive.h (+0, -30)

8 Modified Paths:

/source/blender/gpu/GPU_init_exit.h (+1, -0) (Diff)
/source/blender/gpu/intern/gpu_init_exit.c (+6, -1) (Diff)
/source/blender/python/gpu/CMakeLists.txt (+2, -4) (Diff)
/source/blender/python/gpu/gpu_py_batch.c (+3, -2) (Diff)
/source/blender/python/gpu/gpu_py_element.c (+3, -2) (Diff)
/source/blender/python/gpu/gpu_py_offscreen.c (+3, -1) (Diff)
/source/blender/python/gpu/gpu_py_shader.c (+6, -2) (Diff)
/source/blender/python/intern/bpy_interface.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021