|
|
|
@ -37,6 +37,7 @@
|
|
|
|
|
#include "../mwrender/animation.hpp"
|
|
|
|
|
#include "../mwrender/renderingmanager.hpp"
|
|
|
|
|
#include "../mwrender/camera.hpp"
|
|
|
|
|
#include "../mwrender/vismask.hpp"
|
|
|
|
|
|
|
|
|
|
#include "../mwscript/interpretercontext.hpp"
|
|
|
|
|
#include "../mwscript/globalscripts.hpp"
|
|
|
|
@ -1862,6 +1863,7 @@ namespace MWWorld
|
|
|
|
|
{
|
|
|
|
|
// Adjust position so the location we wanted ends up in the middle of the object bounding box
|
|
|
|
|
osg::ComputeBoundsVisitor computeBounds;
|
|
|
|
|
computeBounds.setTraversalMask(~MWRender::Mask_ParticleSystem);
|
|
|
|
|
dropped.getRefData().getBaseNode()->accept(computeBounds);
|
|
|
|
|
osg::BoundingBox bounds = computeBounds.getBoundingBox();
|
|
|
|
|
if (bounds.valid())
|
|
|
|
|