further fix for bundled osl by meta-androcto
authorBrendon Murphy <meta.androcto1@gmail.com>
Wed, 19 Jun 2013 10:07:29 +0000 (10:07 +0000)
committerBrendon Murphy <meta.androcto1@gmail.com>
Wed, 19 Jun 2013 10:07:29 +0000 (10:07 +0000)
online_mat_lib/__init__.py

index 42ffdc2..e4e7876 100644 (file)
@@ -3653,7 +3653,7 @@ class InsertLibraryScript(bpy.types.Operator):
             self.report({'ERROR'}, "Image is not cached; cannot download in offline mode!")
             return {'CANCELLED'}
         
-        new_node = context.active_object.active_material.node_tree.nodes.new('SCRIPT')
+        new_node = context.active_object.active_material.node_tree.nodes.new('ShaderNodeScript')
         new_node.mode = 'EXTERNAL'
         new_node.filepath = script_path