Fix T99847: Dragging image from Image Editor to Node Editor broken
Oversight in b0da080c2c
. The `session_uuid` operator property wouldn't
be checked by the invoke callback, and if neither the `filepath` nor the
`name` property were set, the File Browser would open.
This commit is contained in:
parent
7f8d05131a
commit
a814c7091b
Notes:
blender-bot
2023-02-14 04:07:50 +01:00
Referenced by issue #99847, Regression: Dragging an image from the Image Editor into any Node Editor no longer works in 3.3
|
@ -690,8 +690,8 @@ static int node_add_file_invoke(bContext *C, wmOperator *op, const wmEvent *even
|
|||
snode->runtime->cursor[0] /= UI_DPI_FAC;
|
||||
snode->runtime->cursor[1] /= UI_DPI_FAC;
|
||||
|
||||
if (RNA_struct_property_is_set(op->ptr, "filepath") ||
|
||||
RNA_struct_property_is_set(op->ptr, "name")) {
|
||||
if (WM_operator_properties_id_lookup_is_set(op->ptr) ||
|
||||
RNA_struct_property_is_set(op->ptr, "filepath")) {
|
||||
return node_add_file_exec(C, op);
|
||||
}
|
||||
return WM_operator_filesel(C, op, event);
|
||||
|
|
Loading…
Reference in New Issue