mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 15:15:31 +00:00
No physics or mouse picking for object preview.
This commit is contained in:
parent
2f26fc1188
commit
98ff3e7307
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ void CSVRender::Object::update()
|
||||||
mObject = NifOgre::Loader::createObjects (mBase, "Meshes\\" + model);
|
mObject = NifOgre::Loader::createObjects (mBase, "Meshes\\" + model);
|
||||||
mObject->setVisibilityFlags (Element_Reference);
|
mObject->setVisibilityFlags (Element_Reference);
|
||||||
|
|
||||||
if (!mReferenceId.empty())
|
if (mPhysics && !mReferenceId.empty())
|
||||||
{
|
{
|
||||||
const CSMWorld::CellRef& reference = getReference();
|
const CSMWorld::CellRef& reference = getReference();
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
CSVRender::PreviewWidget::PreviewWidget (CSMWorld::Data& data,
|
CSVRender::PreviewWidget::PreviewWidget (CSMWorld::Data& data,
|
||||||
const std::string& id, bool referenceable, QWidget *parent)
|
const std::string& id, bool referenceable, QWidget *parent)
|
||||||
: SceneWidget (parent), mData (data),
|
: SceneWidget (parent), mData (data),
|
||||||
mObject (data, getSceneManager()->getRootSceneNode(), id, referenceable, getPhysics(), true)
|
mObject (data, getSceneManager()->getRootSceneNode(), id, referenceable, NULL, true)
|
||||||
{
|
{
|
||||||
setNavigation (&mOrbit);
|
setNavigation (&mOrbit);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue