Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2007, 7:14:41 PM (16 years ago)
Author:
landauf
Message:

finally found the damn fkng bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/objects/Model.cc

    r586 r589  
    2323    void Model::loadParams(TiXmlElement* xmlElem)
    2424    {
    25 std::cout << "### START PARSING MODEL" << std::endl;
    2625        WorldEntity::loadParams(xmlElem);
    2726
    28 
    29 std::cout << "Model: 1\n";
    3027        if (xmlElem->Attribute("mesh"))
    3128        {
    32 std::cout << "Model: 2_1\n";
    3329                std::string src = xmlElem->Attribute("mesh");
    34 std::cout << "Model: 2_2\n";
    35 std::cout << "Model: mesh before creation: " << &this->mesh_ << std::endl;
    36 std::cout << "Model: entity before creation: " << this->mesh_.getEntity() << std::endl;
    37                 this->mesh_ = Mesh(src);
    38 std::cout << "Model: 2_3\n";
    39 std::cout << "Model: entity after creation: " << this->mesh_.getEntity() << std::endl;
    40 std::cout << "Model: mesh after creation: " << &this->mesh_ << std::endl;
    41 std::cout << "Model: node: " << this->getNode() << std::endl;
    42 
    43 //Entity *ent2 = Orxonox::getSingleton()->getSceneManager()->createEntity( "Robot2", "ogrehead.mesh" );
    44 //SceneNode *node2 = mSceneMgr->getRootSceneNode()->createChildSceneNode( "RobotNode2", Vector3( 50, 0, 0 ) );
    45 //node2->attachObject( ent2 );
    46 //this->attachObject( ent2 );
    47 //node2->attachObject( this->mesh_.getEntity() );
    48 this->attachObject( this->mesh_.getEntity() );
    49 
    50 //                  this->attachObject(this->mesh_.getEntity());
    51 std::cout << "Model: 2_4\n";
     30                this->mesh_.setMesh(src);
     31                    this->attachObject(this->mesh_.getEntity());
    5232        }
    53 std::cout << "Model: 3\n";
    54 std::cout << "### FINISHED PARSING MODEL" << std::endl;
    5533
    5634        COUT(4) << "Loader: Created model" << std::endl;
Note: See TracChangeset for help on using the changeset viewer.