rename some rna properties filename --> filepath

* filename == "foo.ext"
 * filepath == "/path/to/and/including/foo.ext"

this was alredy followed in some places not not everywhere.
This commit is contained in:
2010-06-02 17:58:28 +00:00
parent fc59a6c6c8
commit 9cbbc9d3af
40 changed files with 158 additions and 162 deletions

View File

@@ -87,20 +87,20 @@ def process(paths):
# LIBRARIES
###########################
for lib in bpy.data.libraries:
file_path = bpy.utils.expandpath(lib.filename)
file_path = bpy.utils.expandpath(lib.filepath)
new_path = path_map.get(file_path, None)
if new_path:
lib.filename = new_path
lib.filepath = new_path
###########################
# IMAGES
###########################
for image in bpy.data.images:
if image.source == "FILE" and not image.packed_file:
file_path = bpy.utils.expandpath(image.filename)
file_path = bpy.utils.expandpath(image.filepath)
new_path = path_map.get(file_path, None)
if new_path:
image.filename = new_path
image.filepath = new_path
###########################
@@ -119,10 +119,10 @@ def process(paths):
if modifier.domain_settings.highres:
processPointCache(modifier.domain_settings.point_cache_high)
elif modifier.type == "MULTIRES" and modifier.external:
file_path = bpy.utils.expandpath(modifier.filename)
file_path = bpy.utils.expandpath(modifier.filepath)
new_path = path_map.get(file_path, None)
if new_path:
modifier.filename = new_path
modifier.filepath = new_path
# particles modifier are stupid and don't contain data
# we have to go through the object property