mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-26 06:40:22 +00:00
Merge pull request #1268 from Allofich/anim
Add enabled check to animation script commands
This commit is contained in:
commit
931310d2e2
@ -42,6 +42,9 @@ namespace MWScript
|
|||||||
{
|
{
|
||||||
MWWorld::Ptr ptr = R()(runtime);
|
MWWorld::Ptr ptr = R()(runtime);
|
||||||
|
|
||||||
|
if (!ptr.getRefData().isEnabled())
|
||||||
|
return;
|
||||||
|
|
||||||
std::string group = runtime.getStringLiteral (runtime[0].mInteger);
|
std::string group = runtime.getStringLiteral (runtime[0].mInteger);
|
||||||
runtime.pop();
|
runtime.pop();
|
||||||
|
|
||||||
@ -69,6 +72,9 @@ namespace MWScript
|
|||||||
{
|
{
|
||||||
MWWorld::Ptr ptr = R()(runtime);
|
MWWorld::Ptr ptr = R()(runtime);
|
||||||
|
|
||||||
|
if (!ptr.getRefData().isEnabled())
|
||||||
|
return;
|
||||||
|
|
||||||
std::string group = runtime.getStringLiteral (runtime[0].mInteger);
|
std::string group = runtime.getStringLiteral (runtime[0].mInteger);
|
||||||
runtime.pop();
|
runtime.pop();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user