forked from LeenkxTeam/LNXSDK
Blender 2.8 - 4.5 Support
This commit is contained in:
@ -350,7 +350,10 @@ class LNX_PG_TreeVarListItem(bpy.types.PropertyGroup):
|
||||
def _set_name(self, value: str):
|
||||
old_name = self._get_name()
|
||||
|
||||
tree = bpy.context.space_data.path[-1].node_tree
|
||||
if bpy.context.space_data is not None:
|
||||
tree = bpy.context.space_data.path[-1].node_tree
|
||||
else:
|
||||
return # No valid context
|
||||
lst = tree.lnx_treevariableslist
|
||||
|
||||
if value == '':
|
||||
|
Reference in New Issue
Block a user