From 2b6873903cca3b536cc014a18b772ea4066b88c1 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 26 Jun 2001 22:00:21 +0000 Subject: [PATCH] - added implementation for method get_step --- src/Objects/matlib.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Objects/matlib.cxx b/src/Objects/matlib.cxx index 6c8cf6b7f..3f695724f 100644 --- a/src/Objects/matlib.cxx +++ b/src/Objects/matlib.cxx @@ -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() { -- 2.39.5