@@ -1431,7 +1431,7 @@ def visit_Attribute(self, node):
14311431
14321432 node_value = self .visit (node .value )
14331433
1434- if self ._with_dart or self ._with_ll :
1434+ if self ._with_dart or self ._with_ll or self . _with_glsl :
14351435 return '%s.%s' % (node_value , node .attr )
14361436 elif self ._with_js :
14371437 return '%s.%s' % (node_value , node .attr )
@@ -2665,7 +2665,7 @@ def visit_FunctionDef(self, node):
26652665 writer .write ('var(%s)' % a )
26662666
26672667 #####################################################################
2668- if self ._with_dart :
2668+ if self ._with_dart or self . _with_glsl :
26692669 pass
26702670
26712671 elif self ._with_js or javascript or self ._with_ll :
@@ -2939,6 +2939,10 @@ def visit_FunctionDef(self, node):
29392939
29402940 writer .pull () ## end function body
29412941
2942+ if not self ._with_dart and not self ._with_lua and not self ._with_js and not javascript and not self ._with_glsl :
2943+ writer .write ('%s.pythonscript_function=True' % node .name )
2944+
2945+
29422946 if gpu :
29432947 self ._with_glsl = restore_with_glsl
29442948 if gpu_main :
@@ -2982,8 +2986,6 @@ def visit_FunctionDef(self, node):
29822986 if return_type :
29832987 writer .write ('%s.return_type = "%s"' % (node .name , return_type ))
29842988
2985- if not self ._with_js and not javascript :
2986- writer .write ('%s.pythonscript_function=True' % node .name )
29872989
29882990
29892991 if self ._with_js and with_js_decorators :
0 commit comments