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:
authorMatt Ebb <matt@mke3.net>2010-05-12 08:25:33 +0400
committerMatt Ebb <matt@mke3.net>2010-05-12 08:25:33 +0400
commit7aa907c996cd9a22a1b1d14159ef7ef9822f0a54 (patch)
tree4b8fdec044aa2ee9968e4e4b39b7cc14f1b395e5 /source/blender/editors/space_view3d/space_view3d.c
parentd153850520cc191b7cfad6c84cd56bebadeda376 (diff)
Another one for drag and drop:
Allow dropping image files from outside blender, or image datablocks from inside blender to the compositing node editor, to add an image node. Also small tweak: Only set 'path' properties on drops, if the drag->path isn't empty.
Diffstat (limited to 'source/blender/editors/space_view3d/space_view3d.c')
-rw-r--r--source/blender/editors/space_view3d/space_view3d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c
index 472631c3616..e78618f4627 100644
--- a/source/blender/editors/space_view3d/space_view3d.c
+++ b/source/blender/editors/space_view3d/space_view3d.c
@@ -453,7 +453,7 @@ static void view3d_id_path_drop_copy(wmDrag *drag, wmDropBox *drop)
if(id)
RNA_string_set(drop->ptr, "name", id->name+2);
- if(drag->path)
+ if(drag->path[0])
RNA_string_set(drop->ptr, "path", drag->path);
}