forked from LeenkxTeam/LNXSDK
Repe [T3DU] and Moises Jpelaez updates
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import bpy
|
||||
import lnx.utils
|
||||
|
||||
if lnx.is_reload(__name__):
|
||||
@ -286,7 +287,8 @@ class Shader:
|
||||
ar[0] = 'floats'
|
||||
ar[1] = ar[1].split('[', 1)[0]
|
||||
elif ar[0] == 'mat4' and '[' in ar[1]:
|
||||
ar[0] = 'floats'
|
||||
if not (ar[1].startswith('LWVPSpot') and not '_Clusters' in bpy.data.worlds['Lnx'].world_defs): #HACK: do not convert mat4 to floats when using single spot lights
|
||||
ar[0] = 'floats'
|
||||
ar[1] = ar[1].split('[', 1)[0]
|
||||
self.context.add_constant(ar[0], ar[1], link=link, default_value=default_value, is_lnx_mat_param=is_lnx_mat_param)
|
||||
if top:
|
||||
|
||||
Reference in New Issue
Block a user