Fix for drag-n-drop images into sequencer: it was impossible to select files

from a file browser after dropping image strip from an external application.
This commit is contained in:
Sergey Sharybin 2012-03-19 10:52:16 +00:00
parent 305da3a743
commit 73a4f7f4e2

@ -531,7 +531,7 @@ static int sequencer_add_image_strip_invoke(bContext *C, wmOperator *op, wmEvent
/* drag drop has set the names */
if(RNA_collection_length(op->ptr, "files")) {
if(RNA_struct_property_is_set(op->ptr, "files") && RNA_collection_length(op->ptr, "files")) {
sequencer_generic_invoke_xy__internal(C, op, event, SEQPROP_ENDFRAME|SEQPROP_NOPATHS);
return sequencer_add_image_strip_exec(C, op);
}