Allow light to be disabled by scripting
This commit is contained in:
parent
cc970c01a5
commit
628bc7ce50
@ -1039,6 +1039,13 @@ void TrackObjectPresentationLight::setEnergy(float energy)
|
|||||||
lnode->setEnergy(energy);
|
lnode->setEnergy(energy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
void TrackObjectPresentationLight::setEnable(bool enabled)
|
||||||
|
{
|
||||||
|
if (m_node != NULL)
|
||||||
|
m_node->setVisible(enabled);
|
||||||
|
} // setEnable
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
TrackObjectPresentationActionTrigger::TrackObjectPresentationActionTrigger(
|
TrackObjectPresentationActionTrigger::TrackObjectPresentationActionTrigger(
|
||||||
const XMLNode& xml_node,
|
const XMLNode& xml_node,
|
||||||
|
@ -360,6 +360,7 @@ public:
|
|||||||
scene::ISceneNode* parent);
|
scene::ISceneNode* parent);
|
||||||
virtual ~TrackObjectPresentationLight();
|
virtual ~TrackObjectPresentationLight();
|
||||||
float getEnergy() const { return m_energy; }
|
float getEnergy() const { return m_energy; }
|
||||||
|
virtual void setEnable(bool enabled) OVERRIDE;
|
||||||
void setEnergy(float energy);
|
void setEnergy(float energy);
|
||||||
}; // TrackObjectPresentationLight
|
}; // TrackObjectPresentationLight
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user