Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-12-06 02:14:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-12-06 02:14:48 +0300
commit9668c29ba00ed830109665ea132b6292cdfe9e2a (patch)
tree45a9c23c9aaa382b10985b9c640b363f54c3f9c9 /source/blender/editors/space_info
parentb110c7c8f2c5fafa6412e01d21d751a884bfe8b2 (diff)
bpath iterator updates
- loop over sequencer plugin and texture voxel paths. - fix leak in python bpy.utils.blend_path() and use PyUnicode_DecodeFSDefault() to ensure correct paths with different encodings. - operators to make paths absolute & relative now redraw the view.
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r--source/blender/editors/space_info/info_ops.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/space_info/info_ops.c b/source/blender/editors/space_info/info_ops.c
index b4a63d344ec..c45e4d3acf0 100644
--- a/source/blender/editors/space_info/info_ops.c
+++ b/source/blender/editors/space_info/info_ops.c
@@ -193,6 +193,9 @@ static int make_paths_relative_exec(bContext *UNUSED(C), wmOperator *op)
makeFilesRelative(G.main->name, op->reports);
+ /* redraw everything so any changed paths register */
+ WM_main_add_notifier(NC_WINDOW, NULL);
+
return OPERATOR_FINISHED;
}
@@ -219,6 +222,10 @@ static int make_paths_absolute_exec(bContext *UNUSED(C), wmOperator *op)
}
makeFilesAbsolute(G.main->name, op->reports);
+
+ /* redraw everything so any changed paths register */
+ WM_main_add_notifier(NC_WINDOW, NULL);
+
return OPERATOR_FINISHED;
}