summaryrefslogtreecommitdiff
path: root/media-gfx/blender/files/blender-5.2.1-osl-python-types.patch
blob: d027fe9d8f9baf434a197abd1d73f4d40d5239e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/intern/cycles/blender/addon/osl.py
+++ b/intern/cycles/blender/addon/osl.py
@@ -271,6 +271,8 @@
 def update_script_node(node, report):
     """compile and update shader script node"""
     import os
+    # Register the TypeDesc bindings used by the system oslquery module.
+    import OpenImageIO
     import oslquery
 
     oso_file_remove = False
@@ -326,6 +328,8 @@
 def update_custom_camera_shader(cam, report):
     """compile and update custom camera shader"""
     import os
+    # Register the TypeDesc bindings used by the system oslquery module.
+    import OpenImageIO
     import oslquery
 
     oso_file_remove = False