Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(534)

Unified Diff: release/scripts/modules/bpy/utils.py

Issue 7416049: Freestyle r54826 branch review Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: release/scripts/modules/bpy/utils.py
===================================================================
--- release/scripts/modules/bpy/utils.py (revision 54826)
+++ release/scripts/modules/bpy/utils.py (working copy)
@@ -35,7 +35,6 @@
"register_module",
"register_manual_map",
"unregister_manual_map",
- "make_rna_paths",
"manual_map",
"resource_path",
"script_path_user",
@@ -641,29 +640,3 @@
continue
yield prefix, url_manual_mapping
-
-
-# Build an RNA path from struct/property/enum names.
sergey.vfx 2013/03/18 16:38:04 Is it also a merge issue?
kjym3 2013/03/23 22:46:08 Yes, looks like included by accident.
-def make_rna_paths(struct_name, prop_name, enum_name):
- """
- Create RNA "paths" from given names.
-
- :arg struct_name: Name of a RNA struct (like e.g. "Scene").
- :type struct_name: string
- :arg prop_name: Name of a RNA struct's property.
- :type prop_name: string
- :arg enum_name: Name of a RNA enum identifier.
- :type enum_name: string
- :return: A triple of three "RNA paths" (most_complete_path, "struct.prop", "struct.prop:'enum'").
- If no enum_name is given, the third element will always be void.
- :rtype: tuple of strings
- """
- src = src_rna = src_enum = ""
- if struct_name:
- if prop_name:
- src = src_rna = ".".join((struct_name, prop_name))
- if enum_name:
- src = src_enum = "{}:'{}'".format(src_rna, enum_name)
- else:
- src = src_rna = struct_name
- return src, src_rna, src_enum

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b