Changeset 427 for trunk/src/set_object.m


Ignore:
Timestamp:
May 17, 2012, 11:33:21 PM (12 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/set_object.m

    r424 r427  
    153153% else
    154154% enable the PLOT (REFRESH) button by default
     155%defaul settings
     156set(get(handles.set_object,'children'),'enable','on')
    155157   set(handles.PLOT,'enable','off')
    156158% end
     
    444446    ObjectNameNew=ObjectName;
    445447    vers=0;% index of the name
    446     while detectname==1
     448    while ~isempty(detectname)
    447449        detectname=find(strcmp(ObjectNameNew,ListObject),1);%test the existence of the proposed name in the list
    448450        if detectname% if the object name already exists
    449             indstr=regexp(ObjectNameNew,'\D');
     451            indstr=regexp(ObjectNameNew,'\D');%indices of non number characters
    450452            if indstr(end)<length(ObjectNameNew) %object name ends by a number
    451453                vers=str2double(ObjectNameNew(indstr(end)+1:end))+1;
     
    463465    set(hhuvmat.ListObject_1,'String',[ListObject;{ObjectName}]);%complement the object list
    464466    set(hhuvmat.ListObject,'Value',IndexObj(2))
     467    set(hhuvmat.ViewObject,'Value',1)% indicate that the currently selected objected is viewed on set_object
    465468    UvData.Object{IndexObj(2)}=[];%initiate a new object (empty yet)
    466469end
     
    529532set(hhuvmat.edit_object,'Value',1) % set uvmat to object edit mode to allow further object update
    530533set(hhuvmat.edit_object,'BackgroundColor',[1 1 0]);% paint the edit text in yellow
     534set(hhuvmat.ViewField,'Value',1)
    531535
    532536%------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.