]> git.mxchange.org Git - flightgear.git/commitdiff
- added implementation for method get_step
authorcurt <curt>
Tue, 26 Jun 2001 22:00:21 +0000 (22:00 +0000)
committercurt <curt>
Tue, 26 Jun 2001 22:00:21 +0000 (22:00 +0000)
src/Objects/matlib.cxx

index 6c8cf6b7ff9761ea2d10121a72a2aae42a18b0c2..3f695724f916fcf0b097a4d1759f5eea17907309 100644 (file)
@@ -61,6 +61,7 @@ FGMaterialLib material_lib;
 
 // Constructor
 FGMaterialLib::FGMaterialLib ( void ) {
+  set_step(0);
 }
 
 
@@ -297,6 +298,14 @@ void FGMaterialLib::set_step ( int step )
 }
 
 
+// Get the step for the state selectors
+int FGMaterialLib::get_step ()
+{
+  material_map_iterator it = begin();
+  return it->second->get_state()->getSelectStep();
+}
+
+
 // Load one pending "deferred" texture.  Return true if a texture
 // loaded successfully, false if no pending, or error.
 void FGMaterialLib::load_next_deferred() {