Explorar o código

Fixed Octree's bounding box attribute default value registration.

Wei Tjong Yao %!s(int64=12) %!d(string=hai) anos
pai
achega
ea2c1f8ae2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Engine/Graphics/Octree.cpp

+ 2 - 2
Engine/Graphics/Octree.cpp

@@ -350,8 +350,8 @@ void Octree::RegisterObject(Context* context)
 {
     context->RegisterFactory<Octree>();
     
-    Vector3 defaultBoundsMin = Vector3::ONE * DEFAULT_OCTREE_SIZE;
-    Vector3 defaultBoundsMax = -Vector3::ONE * DEFAULT_OCTREE_SIZE;
+    Vector3 defaultBoundsMin = -Vector3::ONE * DEFAULT_OCTREE_SIZE;
+    Vector3 defaultBoundsMax = Vector3::ONE * DEFAULT_OCTREE_SIZE;
     
     ATTRIBUTE(Octree, VAR_VECTOR3, "Bounding Box Min", worldBoundingBox_.min_, defaultBoundsMin, AM_DEFAULT);
     ATTRIBUTE(Octree, VAR_VECTOR3, "Bounding Box Max", worldBoundingBox_.max_, defaultBoundsMax, AM_DEFAULT);