mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 17:09:40 +00:00
local script registration
This commit is contained in:
parent
e1c7d1f529
commit
aff05b9d36
1 changed files with 6 additions and 0 deletions
|
@ -1023,6 +1023,9 @@ namespace MWWorld
|
||||||
|
|
||||||
MWWorld::Ptr dropped = cell->insertObject(object, pos);
|
MWWorld::Ptr dropped = cell->insertObject(object, pos);
|
||||||
mWorldScene->addObjectToScene(dropped);
|
mWorldScene->addObjectToScene(dropped);
|
||||||
|
mLocalScripts.add(
|
||||||
|
MWWorld::Class::get(dropped).getScript(),
|
||||||
|
dropped);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1050,6 +1053,9 @@ namespace MWWorld
|
||||||
MWWorld::Ptr dropped = cell->insertObject(object, pos);
|
MWWorld::Ptr dropped = cell->insertObject(object, pos);
|
||||||
|
|
||||||
mWorldScene->addObjectToScene(dropped);
|
mWorldScene->addObjectToScene(dropped);
|
||||||
|
mLocalScripts.add(
|
||||||
|
MWWorld::Class::get(dropped).getScript(),
|
||||||
|
dropped);
|
||||||
}
|
}
|
||||||
|
|
||||||
void World::processChangedSettings(const Settings::CategorySettingVector& settings)
|
void World::processChangedSettings(const Settings::CategorySettingVector& settings)
|
||||||
|
|
Loading…
Reference in a new issue