Revision: 26520
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26520
Author: damien78
Date: 2010-02-01 18:38:44 +0100 (Mon, 01 Feb 2010)
Log Message:
-----------
Cocoa/DND : give feedback to user of drop possibility before actual drop
The '+' in the cursor during the DND operation is displayed only if drop is
accepted.
(through a previous call to GHOST_setAcceptDragOperation(window, TRUE); )
Modified Paths:
--------------
trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm
Modified: trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm 2010-02-01
17:33:41 UTC (rev 26519)
+++ trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm 2010-02-01
17:38:44 UTC (rev 26520)
@@ -182,7 +182,7 @@
NSPoint mouseLocation = [sender draggingLocation];
systemCocoa->handleDraggingEvent(GHOST_kEventDraggingUpdated,
m_draggedObjectType, associatedWindow, mouseLocation.x, mouseLocation.y, nil);
- return NSDragOperationCopy;
+ return
associatedWindow->canAcceptDragOperation()?NSDragOperationCopy:NSDragOperationNone;
}
- (void)draggingExited:(id < NSDraggingInfo >)sender
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs