Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 3, 2011, 11:28:06 PM (13 years ago)
Author:
landauf
Message:

fixed some stuff that became visible after the recent changes in the output system:

  • fixed ogre exception because of included files in xml template files (it was searching for templates/includes/*.oxi instead of includes/*.oxi)
  • initializing worldentities with mass 1 instead of 0 to avoid a warning
  • Loader::open now also supports a bVerbose flag to hide output for internal xml files (like resource files)
Location:
code/branches/output/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/core/GraphicsManager.cc

    r8806 r8820  
    114114        resources_.reset(new XMLFile("DefaultResources.oxr"));
    115115        resources_->setLuaSupport(false);
    116         Loader::open(resources_.get());
     116        Loader::open(resources_.get(), ClassTreeMask(), false);
    117117
    118118        // Only for runs in the build directory (not installed)
     
    122122        extResources_.reset(new XMLFile("resources.oxr"));
    123123        extResources_->setLuaSupport(false);
    124         Loader::open(extResources_.get());
     124        Loader::open(extResources_.get(), ClassTreeMask(), false);
    125125
    126126        if (bLoadRenderer)
     
    313313        orxout(internal_info) << "Loading Debug Overlay..." << endl;
    314314        debugOverlay_.reset(new XMLFile("debug.oxo"));
    315         Loader::open(debugOverlay_.get());
     315        Loader::open(debugOverlay_.get(), ClassTreeMask(), false);
    316316    }
    317317
  • code/branches/output/src/libraries/core/Loader.cc

    r8808 r8820  
    4949    ClassTreeMask Loader::currentMask_s;
    5050
    51     bool Loader::open(const XMLFile* file, const ClassTreeMask& mask)
     51    bool Loader::open(const XMLFile* file, const ClassTreeMask& mask, bool bVerbose)
    5252    {
    5353        Loader::add(file, mask);
    54         return Loader::load(file, mask);
     54        return Loader::load(file, mask, bVerbose);
    5555    }
    5656
  • code/branches/output/src/libraries/core/Loader.h

    r8808 r8820  
    5151    {
    5252        public:
    53             static bool open(const XMLFile* file, const ClassTreeMask& mask = ClassTreeMask());
     53            static bool open(const XMLFile* file, const ClassTreeMask& mask = ClassTreeMask(), bool bVerbose = true);
    5454            static void close();
    5555            static void close(const XMLFile* file);
  • code/branches/output/src/orxonox/worldentities/WorldEntity.cc

    r8809 r8820  
    9595        this->collisionType_             = None;
    9696        this->collisionTypeSynchronised_ = None;
    97         this->mass_           = 0;
     97        this->mass_           = 1.0f;
    9898        this->childrenMass_   = 0;
    9999        // Using bullet default values
     
    968968                this->physicalBody_->setMassProps(0.0f, btVector3(0, 0, 0));
    969969            }
    970             else if ((this->mass_ + this->childrenMass_) == 0.0f)
     970            else if (totalMass == 0.0f)
    971971            {
    972972                // Use default values to avoid very large or very small values
Note: See TracChangeset for help on using the changeset viewer.