Changeset 397 for trunk/src/set_object.m


Ignore:
Timestamp:
Apr 26, 2012, 8:59:09 AM (12 years ago)
Author:
sommeria
Message:

civ_matlab and patch improved, changes in the management of interpolation (still in progress).
adapatation to movies (use of VideoReader?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r388 r397  
    397397ObjectData=read_GUI(handles.set_object);%read the parameters defining the object in the GUI set_object
    398398ObjectName=ObjectData.Name;%name of the current object defined in set_object
     399if iscell(ObjectData.Coord)%check for empty line
     400    ObjectData.Coord=[0 0 0];
     401    hhset_object=guidata(handles.set_object);
     402    set(hhset_object.Coord,'Data',ObjectData.Coord)
     403end
    399404checknan=isnan(sum(ObjectData.Coord,2));%check for NaN lines
    400405if ~isempty(checknan)
     
    403408if isempty(ObjectName)
    404409    if get(hhuvmat.edit_object,'Value')% edit mode
     410        if isempty(ListObject)
     411            ObjectName='Plane';
     412        else
    405413        ObjectName=ListObject{IndexObj(end)};%take the name of the last (second) selected item
     414        end
    406415    else %new object
    407416        StyleList=get(handles.Type,'String');
Note: See TracChangeset for help on using the changeset viewer.