Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 30, 2009, 12:42:28 PM (15 years ago)
Author:
scheusso
Message:

Fixed problem with scene and creators
creatorID is now always the objectID of the scene except for the case

  • if the object is the scene (then the creatorID is OBJECTID_UNKNOWN)
  • if the object is "above" the scene (e.g. level), then the cID is also OBJECTID_UNKNOWN
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/orxonox/Scene.cc

    r5813 r5839  
    5555        RegisterObject(Scene);
    5656
    57         this->setScene(SmartPtr<Scene>(this, false));
     57        this->setScene(SmartPtr<Scene>(this, false), OBJECTID_UNKNOWN);
    5858        this->bShadows_ = true;
    5959
     
    283283    {
    284284        this->objects_.push_back(object);
    285         object->setScene(this);
     285        object->setScene(this, this->getObjectID());
    286286    }
    287287
Note: See TracChangeset for help on using the changeset viewer.