Changeset 187 for trunk/src/set_object.m


Ignore:
Timestamp:
Feb 1, 2011, 1:07:28 AM (13 years ago)
Author:
sommeria
Message:

various bug repairs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r186 r187  
    776776UvData.Object{IndexObj}=ObjectData;%update the current object properties
    777777UvData.Object=update_obj(UvData,IndexObj_1,IndexObj_2);
    778 
    779 %% plot the field projected on the object and store it the corresponding figue
    780 get(plotaxes,'tag')
     778set(huvmat,'UserData',UvData)
     779
     780%% plot the field projected on the object and store in the corresponding figue
    781781ProjData= proj_field(UvData.Field,ObjectData);%project the current interface field on ObjectData
    782782[PlotType,Object_out{IndexObj}.PlotParam,plotaxes]=plot_field(ProjData,plotaxes,PlotHandles);%update an existing field plot
    783 if strcmp(projview,'view_field')
    784     ViewFieldData=get(hview_field,'UserData');
    785     ViewFieldData.axes3=ObjectData;
    786     set(hview_field,'UserData',ViewFieldData)
    787 else
    788     UvData.axes3=ObjectData;
    789 end
    790783
    791784%% update the GUI uvmat
     
    795788set(hhuvmat.edit_object,'BackgroundColor',[1 1 0]);% paint the edit text in yellow
    796789%UvData.MouseAction='edit_object'; % set the edit button to 'on'
    797 set(huvmat,'UserData',UvData)
     790
    798791%------------------------------------------------------------------------
    799792% --- Executes on button press in MenuCoord.
Note: See TracChangeset for help on using the changeset viewer.