From 945007b32e9a30252216398413bff88c103d8667 Mon Sep 17 00:00:00 2001 From: mano-wii Date: Wed, 2 Jan 2019 10:01:46 -0200 Subject: 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 --- source/blender/python/intern/bpy_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python/intern/bpy_interface.c') diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index e17e7562f2a..3b4e8c0904c 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -74,7 +74,7 @@ #include "../generic/blf_py_api.h" #include "../generic/idprop_py_api.h" #include "../generic/imbuf_py_api.h" -#include "../gpu/gpu_py_api.h" +#include "../gpu/gpu_py.h" #include "../bmesh/bmesh_py_api.h" #include "../mathutils/mathutils.h" -- cgit v1.2.3