mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 22:20:33 +00:00
local script registration
This commit is contained in:
parent
e1c7d1f529
commit
aff05b9d36
@ -1023,6 +1023,9 @@ namespace MWWorld
|
||||
|
||||
MWWorld::Ptr dropped = cell->insertObject(object, pos);
|
||||
mWorldScene->addObjectToScene(dropped);
|
||||
mLocalScripts.add(
|
||||
MWWorld::Class::get(dropped).getScript(),
|
||||
dropped);
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -1050,6 +1053,9 @@ namespace MWWorld
|
||||
MWWorld::Ptr dropped = cell->insertObject(object, pos);
|
||||
|
||||
mWorldScene->addObjectToScene(dropped);
|
||||
mLocalScripts.add(
|
||||
MWWorld::Class::get(dropped).getScript(),
|
||||
dropped);
|
||||
}
|
||||
|
||||
void World::processChangedSettings(const Settings::CategorySettingVector& settings)
|
||||
|
Loading…
x
Reference in New Issue
Block a user