|
@@ -561,6 +561,10 @@ namespace viewer
|
|
|
|
|
|
IGL_INLINE bool Viewer::mouse_down(MouseButton button,int modifier)
|
|
|
{
|
|
|
+ // Remember mouse location at down even if used by callback/plugin
|
|
|
+ down_mouse_x = current_mouse_x;
|
|
|
+ down_mouse_y = current_mouse_y;
|
|
|
+
|
|
|
if (callback_mouse_down)
|
|
|
if (callback_mouse_down(*this,static_cast<int>(button),modifier))
|
|
|
return true;
|
|
@@ -571,8 +575,6 @@ namespace viewer
|
|
|
|
|
|
down = true;
|
|
|
|
|
|
- down_mouse_x = current_mouse_x;
|
|
|
- down_mouse_y = current_mouse_y;
|
|
|
down_translation = core.model_translation;
|
|
|
|
|
|
|