Warn on invalid logic tree name

This commit is contained in:
unknown 2018-01-02 18:19:02 +01:00
parent fa583dc361
commit aecbbac32e

View file

@ -2437,6 +2437,8 @@ class ArmoryExporter:
if t.type_prop == 'Logic Nodes' and t.nodes_name_prop != '':
x['type'] = 'Script'
x['class_name'] = arm.utils.safestr(bpy.data.worlds['Arm'].arm_project_package) + '.node.' + arm.utils.safesrc(t.nodes_name_prop)
if len(t.nodes_name_prop) > 0 and not t.nodes_name_prop[0].isupper():
log.warn('Logic tree name "' + t.nodes_name_prop + '" must start with upper-case letter')
elif t.type_prop == 'WebAssembly':
pass
elif t.type_prop == 'UI Canvas':