mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 17:39:40 +00:00
disabled items placing handling
This commit is contained in:
parent
26595f22f6
commit
aa5f63ffcc
2 changed files with 8 additions and 3 deletions
|
@ -233,7 +233,11 @@ namespace MWWorld
|
||||||
Ptr newPtr = copyToCellImpl(ptr, cell);
|
Ptr newPtr = copyToCellImpl(ptr, cell);
|
||||||
|
|
||||||
newPtr.getRefData().setCount(ptr.getRefData().getCount());
|
newPtr.getRefData().setCount(ptr.getRefData().getCount());
|
||||||
newPtr.getRefData().enable();
|
if (ptr.getRefData().isEnabled()) {
|
||||||
|
newPtr.getRefData().enable();
|
||||||
|
} else {
|
||||||
|
newPtr.getRefData().disable();
|
||||||
|
}
|
||||||
|
|
||||||
return newPtr;
|
return newPtr;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1054,8 +1054,9 @@ namespace MWWorld
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mWorldScene->isCellActive(cell)) {
|
if (mWorldScene->isCellActive(cell)) {
|
||||||
mWorldScene->addObjectToScene(dropped);
|
if (dropped.getRefData().isEnabled()) {
|
||||||
|
mWorldScene->addObjectToScene(dropped);
|
||||||
|
}
|
||||||
std::string script = MWWorld::Class::get(dropped).getScript(dropped);
|
std::string script = MWWorld::Class::get(dropped).getScript(dropped);
|
||||||
if (!script.empty()) {
|
if (!script.empty()) {
|
||||||
mLocalScripts.add(script, dropped);
|
mLocalScripts.add(script, dropped);
|
||||||
|
|
Loading…
Reference in a new issue