Browse Source

Added "Is Enabled" attribute to Navigable. This only affects the build process of the navmesh.

Lasse Öörni 12 years ago
parent
commit
00eac389f9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Engine/Navigation/Navigable.cpp

+ 1 - 0
Engine/Navigation/Navigable.cpp

@@ -45,6 +45,7 @@ void Navigable::RegisterObject(Context* context)
 {
 {
     context->RegisterFactory<Navigable>();
     context->RegisterFactory<Navigable>();
     
     
+    ACCESSOR_ATTRIBUTE(Navigable, VAR_BOOL, "Is Enabled", IsEnabled, SetEnabled, bool, true, AM_DEFAULT);
     ATTRIBUTE(Navigable, VAR_BOOL, "Recursive", recursive_, true, AM_DEFAULT);
     ATTRIBUTE(Navigable, VAR_BOOL, "Recursive", recursive_, true, AM_DEFAULT);
 }
 }