Changeset 427 for trunk/src/mouse_down.m


Ignore:
Timestamp:
May 17, 2012, 11:33:21 PM (9 years ago)
Author:
sommeria
Message:

merge_proj corrected to project simulataneously velocity, vort, div...
Time reintroduced correctly
bug corrections for objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_down.m

    r425 r427  
    333333        vers=0;% index of the name
    334334        detectname=1;
    335         while detectname==1
     335        while ~isempty(detectname)
    336336            detectname=find(strcmp(ObjectNameNew,ListObject),1);%test the existence of the proposed name in the list
    337337            if detectname% if the object name already exists
     
    348348        ObjectName=ObjectNameNew;
    349349        set(sethandles.Name,'String',ObjectName)% display the default name in set_object
    350 %         IndexObj=numel(ListObject)+1;% append an object to the list in uvmat
    351350        set(hhuvmat.ListObject,'String',[ListObject;{ObjectName}]);%complement the object list
    352351        set(hhuvmat.ListObject_1,'String',[ListObject;{ObjectName}]);%complement the object list
    353         %set(hhuvmat.ListObject,'Value',[IndexObj_old(1) IndexObj])
    354352        set(hhuvmat.ListObject,'Value',IndexObj)
    355353        set(hhuvmat.ViewObject,'Value',1)
    356         %             if isempty(object_name)
    357         %                 list_str{IndexObj}=[num2str(IndexObj) '-' ObjectData.Type];
    358         %                 set(sethandles.Name,'String',list_str{IndexObj})
    359         %             else
    360         %                list_str{IndexObj}=object_name;
    361         %             end
    362         %             set(hhuvmat.ListObject,'String',list_str)
    363354        UvData.Object{IndexObj}.DisplayHandle_view_field=AxeData.CurrentObject;
    364355        set(huvmat,'UserData',UvData)
Note: See TracChangeset for help on using the changeset viewer.