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/libraries/network/synchronisable/Synchronisable.cc

    r5797 r5839  
    7272
    7373    // get creator id
    74     this->creatorID = OBJECTID_UNKNOWN;
    75 
    76     searchcreatorID:
     74    if( creator )
     75      this->creatorID = creator->getSceneID();
     76    else
     77      this->creatorID = OBJECTID_UNKNOWN;
     78
     79    /*searchcreatorID:
    7780    if (creator)
    7881    {
     
    8083        if (synchronisable_creator && synchronisable_creator->objectMode_)
    8184        {
    82             this->creatorID = synchronisable_creator->getObjectID();
     85            this->creatorID = synchronisable_creator->getScene()->getObjectID();
    8386        }
    8487        else if (creator != creator->getCreator())
     
    8790            goto searchcreatorID;
    8891        }
    89     }
     92    }*/
    9093  }
    9194
     
    173176    assert(no);
    174177    no->objectID=header.getObjectID();
    175     no->creatorID=header.getCreatorID(); //TODO: remove this
     178    //no->creatorID=header.getCreatorID(); //TODO: remove this
    176179    no->classID=header.getClassID();
     180    assert(no->creatorID == header.getCreatorID());
     181    //assert(no->classID == header.getClassID());
    177182    COUT(4) << "fabricate objectID: " << no->objectID << " classID: " << no->classID << std::endl;
    178183          // update data and create object/entity...
Note: See TracChangeset for help on using the changeset viewer.