BGE: Applying patch [#35416] "Missing python properties on ActionActuator: layer...
authorMitchell Stokes <mogurijin@gmail.com>
Sun, 19 May 2013 03:15:50 +0000 (03:15 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Sun, 19 May 2013 03:15:50 +0000 (03:15 +0000)
source/gameengine/Converter/BL_ActionActuator.cpp

index af537db0203ab2f61d4bee0db3a77bd35453eef6..90383021c908956f59f6c0cf6ec96e68a5fbf659 100644 (file)
@@ -543,6 +543,8 @@ PyAttributeDef BL_ActionActuator::Attributes[] = {
        KX_PYATTRIBUTE_RW_FUNCTION("action", BL_ActionActuator, pyattr_get_action, pyattr_set_action),
        KX_PYATTRIBUTE_RO_FUNCTION("channelNames", BL_ActionActuator, pyattr_get_channel_names),
        KX_PYATTRIBUTE_SHORT_RW("priority", 0, 100, false, BL_ActionActuator, m_priority),
+       KX_PYATTRIBUTE_SHORT_RW("layer", 0, 7, true, BL_ActionActuator, m_layer),
+       KX_PYATTRIBUTE_FLOAT_RW("layerWeight", 0, 1.0, BL_ActionActuator, m_layer_weight),
        KX_PYATTRIBUTE_RW_FUNCTION("frame", BL_ActionActuator, pyattr_get_frame, pyattr_set_frame),
        KX_PYATTRIBUTE_STRING_RW("propName", 0, MAX_PROP_NAME, false, BL_ActionActuator, m_propname),
        KX_PYATTRIBUTE_STRING_RW("framePropName", 0, MAX_PROP_NAME, false, BL_ActionActuator, m_framepropname),