Inherit the calling object scale in PlaceAt (fixes #4308)

0.6.3
Capostrophic 7 years ago committed by Capostrophic
parent 9b8c56761b
commit 37dc3200d1

@ -530,7 +530,8 @@ namespace MWScript
// create item
MWWorld::ManualRef ref(MWBase::Environment::get().getWorld()->getStore(), itemID, 1);
MWBase::Environment::get().getWorld()->safePlaceObject(ref.getPtr(), actor, actor.getCell(), direction, distance);
MWWorld::Ptr ptr = MWBase::Environment::get().getWorld()->safePlaceObject(ref.getPtr(), actor, actor.getCell(), direction, distance);
MWBase::Environment::get().getWorld()->scaleObject(ptr, actor.getCellRef().getScale());
}
}
};

Loading…
Cancel
Save