Browse Source

[godot] Closes #2238, C# binding generator dislikes type mismatch in gettter/setter pairs.

Mario Zechner 2 years ago
parent
commit
634028495f

+ 2 - 2
spine-godot/spine_godot/SpineSkeletonDataResource.cpp

@@ -51,7 +51,7 @@ void SpineAnimationMix::_bind_methods() {
 SpineAnimationMix::SpineAnimationMix() : from(""), to(""), mix(0) {
 }
 
-void SpineAnimationMix::set_from(const StringName &_from) {
+void SpineAnimationMix::set_from(const String &_from) {
 	this->from = _from;
 }
 
@@ -59,7 +59,7 @@ String SpineAnimationMix::get_from() {
 	return from;
 }
 
-void SpineAnimationMix::set_to(const StringName &_to) {
+void SpineAnimationMix::set_to(const String &_to) {
 	this->to = _to;
 }
 

+ 2 - 2
spine-godot/spine_godot/SpineSkeletonDataResource.h

@@ -24,11 +24,11 @@ protected:
 public:
 	SpineAnimationMix();
 
-	void set_from(const StringName &from);
+	void set_from(const String &from);
 
 	String get_from();
 
-	void set_to(const StringName &to);
+	void set_to(const String &to);
 
 	String get_to();