Changeset 397 for trunk/src/set_object.m
- Timestamp:
- Apr 26, 2012, 8:59:09 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r388 r397 397 397 ObjectData=read_GUI(handles.set_object);%read the parameters defining the object in the GUI set_object 398 398 ObjectName=ObjectData.Name;%name of the current object defined in set_object 399 if 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) 403 end 399 404 checknan=isnan(sum(ObjectData.Coord,2));%check for NaN lines 400 405 if ~isempty(checknan) … … 403 408 if isempty(ObjectName) 404 409 if get(hhuvmat.edit_object,'Value')% edit mode 410 if isempty(ListObject) 411 ObjectName='Plane'; 412 else 405 413 ObjectName=ListObject{IndexObj(end)};%take the name of the last (second) selected item 414 end 406 415 else %new object 407 416 StyleList=get(handles.Type,'String');
Note: See TracChangeset
for help on using the changeset viewer.