Skip to content

Commit 75c3405

Browse files
authored
Merge pull request #755 from a2cy/patch-1
Fix crash when using panda3d shaders
2 parents cf6aa1a + 8dd9f51 commit 75c3405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ursina/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def _update(self, task):
191191
if script.enabled and hasattr(script, 'update') and callable(script.update):
192192
script.update()
193193

194-
if e.shader:
194+
if e.shader and hasattr(e.shader, "continuous_input"):
195195
for key, value in e.shader.continuous_input.items():
196196
e.set_shader_input(key, value())
197197

0 commit comments

Comments
 (0)