diff options
author | Ton Roosendaal <ton@blender.org> | 2010-01-27 18:08:30 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-01-27 18:08:30 +0300 |
commit | f0ec3cb4b10d5423cd28dd5cf177e056aa5df490 (patch) | |
tree | 906e94b018a6d26edddcd88c127ce2291450ba6e /source/blender/editors/object | |
parent | aefdec6ae20ac1010417c34d36fe02015653d44b (diff) |
Two small dragdrop fixes:
- drop material didn't send correct notifiers to refresh view
- drop material gave error print
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_relations.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index 7f4100c01ed..56990e0d975 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -1842,7 +1842,9 @@ static int drop_named_material_invoke(bContext *C, wmOperator *op, wmEvent *even assign_material(base->object, ma, 1); - WM_event_add_notifier(C, NC_OBJECT|ND_SHADING, base->object); + DAG_ids_flush_update(0); + WM_event_add_notifier(C, NC_SPACE|ND_SPACE_VIEW3D, CTX_wm_view3d(C)); + return OPERATOR_FINISHED; } |