Просмотр исходного кода

Add default value in GetMaterial function, so we can use material as a property.

Aster Jian 12 лет назад
Родитель
Сommit
522ea62a33
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Engine/Graphics/StaticModel.h

+ 1 - 1
Engine/Graphics/StaticModel.h

@@ -78,7 +78,7 @@ public:
     /// Return number of geometries.
     unsigned GetNumGeometries() const { return geometries_.Size(); }
     /// Return material by geometry index.
-    Material* GetMaterial(unsigned index) const;
+    Material* GetMaterial(unsigned index = 0) const;
     /// Return occlusion LOD level.
     unsigned GetOcclusionLodLevel() const { return occlusionLodLevel_; }
     /// Determines if the given world space point is within the model geometry.