Fix suggested by Campbell Barton: use %r instead of %s when building the python expression for the node operator settings to ensure correct escaping.

This commit is contained in:
Lukas Toenne 2013-05-09 08:05:02 +00:00
parent 6f8c29ab0b
commit 89d77c538a

@ -78,7 +78,7 @@ def node_group_items(context):
if contains_group(group, ntree): if contains_group(group, ntree):
continue continue
yield NodeItem(node_tree_group_type[group.bl_idname], group.name, { "node_tree" : "bpy.data.node_groups['%s']" % group.name }) yield NodeItem(node_tree_group_type[group.bl_idname], group.name, { "node_tree" : "bpy.data.node_groups[%r]" % group.name })
# All standard node categories currently used in nodes. # All standard node categories currently used in nodes.