mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
disabled items placing handling
This commit is contained in:
parent
26595f22f6
commit
aa5f63ffcc
@ -233,7 +233,11 @@ namespace MWWorld
|
||||
Ptr newPtr = copyToCellImpl(ptr, cell);
|
||||
|
||||
newPtr.getRefData().setCount(ptr.getRefData().getCount());
|
||||
newPtr.getRefData().enable();
|
||||
if (ptr.getRefData().isEnabled()) {
|
||||
newPtr.getRefData().enable();
|
||||
} else {
|
||||
newPtr.getRefData().disable();
|
||||
}
|
||||
|
||||
return newPtr;
|
||||
}
|
||||
|
@ -1054,8 +1054,9 @@ namespace MWWorld
|
||||
}
|
||||
|
||||
if (mWorldScene->isCellActive(cell)) {
|
||||
mWorldScene->addObjectToScene(dropped);
|
||||
|
||||
if (dropped.getRefData().isEnabled()) {
|
||||
mWorldScene->addObjectToScene(dropped);
|
||||
}
|
||||
std::string script = MWWorld::Class::get(dropped).getScript(dropped);
|
||||
if (!script.empty()) {
|
||||
mLocalScripts.add(script, dropped);
|
||||
|
Loading…
Reference in New Issue
Block a user