Changeset 247 for osgVisual/trunk/src/sky_Silverlining
- Timestamp:
- Feb 18, 2011, 5:59:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/sky_Silverlining/visual_skySilverLining.cpp
r221 r247 95 95 96 96 SilverLining::LocalTime t = atmosphere->GetConditions()->GetTime(); 97 t.SetHour( hour_ );98 t.SetMinutes( minute_ );99 t.SetSeconds( second_ );97 if(hour_) t.SetHour( hour_ ); 98 if(minute_) t.SetMinutes( minute_ ); 99 if(second_) t.SetSeconds( second_ ); 100 100 atmosphere->GetConditions()->SetTime( t ); 101 101 } … … 108 108 109 109 SilverLining::LocalTime t = atmosphere->GetConditions()->GetTime(); 110 t.SetYear( year_ );111 t.SetMonth( month_ );112 t.SetDay( day_ );110 if(year_) t.SetYear( year_ ); 111 if(month_) t.SetMonth( month_ ); 112 if(day_) t.SetDay( day_ ); 113 113 } 114 114
Note: See TracChangeset
for help on using the changeset viewer.