taichi-dev / taichi_three

A soft renderer based on Taichi (work in progress)
https://t3.142857.red/
MIT License
223 stars 24 forks source link

blender addon install error #37

Closed kphmd closed 3 years ago

kphmd commented 3 years ago

Modules Installed (Taichi-Blend) from '/Users/Taichi-Blend-osx-37.zip' into '/Users/Library/Application Support/Blender/2.91/scripts/addons' Taichi-Blend package bundle at /Users/Library/Application Support/Blender/2.91/scripts/addons/Taichi-Blend/bundle-packages Exception in module register(): /Users/Library/Application Support/Blender/2.91/scripts/addons/Taichi-Blend/init.py Traceback (most recent call last): File "/Applications/Blender.app/Contents/Resources/2.91/scripts/modules/addon_utils.py", line 382, in enable mod.register() File "/Users/Library/Application Support/Blender/2.91/scripts/addons/Taichi-Blend/init.py", line 24, in register module.register() File "/Users/Library/Application Support/Blender/2.91/scripts/addons/Taichi-Blend/node_system/init.py", line 56, in register node_system.register() File "/Users/Library/Application Support/Blender/2.91/scripts/addons/Taichi-Blend/node_system/init.py", line 28, in register self.module.register_callback(self) File "/Users/Library/Application Support/Blender/2.91/scripts/addons/Taichi-Blend/node_system/material.py", line 34, in register_callback tina.register() File "/Users/Library/Application Support/Blender/2.91/scripts/addons/Taichi-Blend/bundle-packages/tina/init.py", line 21, in register from . import blend File "/Users/Library/Application Support/Blender/2.91/scripts/addons/Taichi-Blend/bundle-packages/tina/blend/init.py", line 128, in class CustomDrawData: File "/Users/Library/Application Support/Blender/2.91/scripts/addons/Taichi-Blend/bundle-packages/tina/blend/init.py", line 157, in CustomDrawData ''')) File "/Users/Library/Application Support/Blender/2.91/scripts/addons/Taichi-Blend/bundle-packages/tina/blend/init.py", line 109, in compile_shader raise RuntimeError(''.join(chr(infoLog[i]) for i in range(length[0]))) RuntimeError: ERROR: 0:11: Invalid call of undeclared identifier 'texture2D' ERROR: 0:12: Use of undeclared identifier 'color' ERROR: 0:12: Use of undeclared identifier 'color' ERROR: 0:13: Use of undeclared identifier 'color'

archibate commented 3 years ago

Hi, sorry for the delayed reply, does modifying texture2D to texture at line 153 of __init__.py fix the issue?

kphmd commented 3 years ago

Hi, sorry for the delayed reply, does modifying texture2D to texture at line 153 of __init__.py fix the issue?

The issue is fixed.