Update after Props2D changes.

This commit is contained in:
Relintai 2022-02-21 22:14:11 +01:00
parent 57a3c6ee34
commit 49dcf99e40
2 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,7 @@ bool Prop2DDataMeshData::_processor_handles(Node *node) {
return i; return i;
} }
void Prop2DDataMeshData::_processor_process(Ref<PropData> prop_data, Node *node, const Transform &transform) { void Prop2DDataMeshData::_processor_process(Ref<Prop2DData> prop_data, Node *node, const Transform &transform) {
MeshDataInstance *i = Object::cast_to<MeshDataInstance>(node); MeshDataInstance *i = Object::cast_to<MeshDataInstance>(node);
ERR_FAIL_COND(!i); ERR_FAIL_COND(!i);

View File

@ -38,8 +38,8 @@ SOFTWARE.
#include "../../props_2d/props/prop_2d_data.h" #include "../../props_2d/props/prop_2d_data.h"
class Prop2DDataMeshData : public PropDataEntry { class Prop2DDataMeshData : public Prop2DDataEntry {
GDCLASS(Prop2DDataMeshData, PropDataEntry); GDCLASS(Prop2DDataMeshData, Prop2DDataEntry);
public: public:
Ref<MeshDataResource> get_mesh() const; Ref<MeshDataResource> get_mesh() const;
@ -59,7 +59,7 @@ public:
#endif #endif
bool _processor_handles(Node *node); bool _processor_handles(Node *node);
void _processor_process(Ref<PropData> prop_data, Node *node, const Transform &transform); void _processor_process(Ref<Prop2DData> prop_data, Node *node, const Transform &transform);
Node *_processor_get_node_for(const Transform &transform); Node *_processor_get_node_for(const Transform &transform);
Prop2DDataMeshData(); Prop2DDataMeshData();