Ignore:
Timestamp:
Sep 2, 2013, 2:42:52 PM (10 years ago)
Author:
sommeria
Message:

mouse action improved for translations, use of magenta color to indicate that REFRESH is needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_motion.m

    r664 r681  
    4949test_zoom_draw=0;
    5050test_object=0; %test for object editing or creation
    51 test_edit_object=0;% edit test for mouse shap: an arrow
     51test_edit_object=0;% edit test for mouse shape: an arrow
    5252test_ruler=0;%test for active ruler
    5353test_transform=0;
     
    357357        plot_object(ObjectData,ProjObject,AxeData.CurrentObject,'m');
    358358        pointershape='crosshair';
    359     elseif isequal(AxeData.Drawing,'translate')
     359    elseif test_edit_object && isequal(AxeData.Drawing,'translate')
    360360        DX=xy(1,1)-XYData(1);%translation from initial position
    361361        DY=xy(1,2)-XYData(2);
     
    364364        plot_object(ObjectData,ProjObject,AxeData.CurrentObject,'m');
    365365        pointershape='fleur';
    366     elseif isequal(AxeData.Drawing,'deform')
     366    elseif test_edit_object && isequal(AxeData.Drawing,'deform')
    367367        ind_move=AxeData.CurrentIndex;
    368368        ObjectData.Coord(ind_move,1)=xy(1,1);
Note: See TracChangeset for help on using the changeset viewer.