Skip to content

3.17.1 Lua Spine event with empty eventData params #19713

@Pinchuka

Description

@Pinchuka
  • cocos2d-x version: 3.17.1
  • devices test on: macOS 10.14.4
  • developing environments
    • Xcode version: 10.1

Steps to Reproduce:

  1. Send event from Spine animation
  2. when we recieve spine animation event in lua, evenData members have incorrect values

The issue in lines

eventData.insert(eventData.end(), LuaValueDict::value_type("intValue", LuaValue::intValue(event->intValue)));
eventData.insert(eventData.end(), LuaValueDict::value_type("floatValue", LuaValue::floatValue(event->floatValue)));
eventData.insert(eventData.end(), LuaValueDict::value_type("stringValue", LuaValue::stringValue(event->stringValue)));

it uses event->intValue but it must use event->data->intValue.
events members intValue, floatValue, stringValue are incorrect

Снимок экрана 2019-05-14 в 19 35 58

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions