Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 18, 2017, 12:40:00 PM (6 years ago)
Author:
patricwi
Message:

rolled back to functional without 2 branches

Location:
code/branches/Presentation_HS17
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17

  • code/branches/Presentation_HS17/src/orxonox/worldentities/WorldEntity.cc

    r11686 r11690  
    4444#include "core/XMLPort.h"
    4545#include "Scene.h"
    46 #include "Level.h"
    4746#include "collisionshapes/WorldEntityCollisionShape.h"
    48 #include "scriptablecontroller/scriptable_controller.h"
    4947
    5048namespace orxonox
     
    8179        this->parentID_ = OBJECTID_UNKNOWN;
    8280        this->bDeleteWithParent_ = true;
    83         this->id_ = -1;
    8481
    8582        this->node_->setPosition(Vector3::ZERO);
     
    163160        XMLPortParamTemplate(WorldEntity, "scale3D",     setScale3D,     getScale3D,     xmlelement, mode, const Vector3&);
    164161        XMLPortParam        (WorldEntity, "scale",       setScale,       getScale,       xmlelement, mode);
    165         XMLPortParamLoadOnly(WorldEntity, "id",          setID,                xmlelement, mode);
    166162        XMLPortParamLoadOnly(WorldEntity, "lookat",      lookAt_xmlport,       xmlelement, mode);
    167163        XMLPortParamLoadOnly(WorldEntity, "direction",   setDirection_xmlport, xmlelement, mode);
     
    185181        // Attached collision shapes
    186182        XMLPortObject(WorldEntity, CollisionShape, "collisionShapes", attachCollisionShape, getAttachedCollisionShape, xmlelement, mode);
    187 
    188         if(!this->id_.empty() && this->getLevel() != nullptr)
    189             this->getLevel()->getScriptableController()->registerWorldEntity(this->id_, this);
    190183    }
    191184
Note: See TracChangeset for help on using the changeset viewer.