Quellcode durchsuchen

[ue4] Fix UE5 compilation errors. Closes #2071

badlogic vor 3 Jahren
Ursprung
Commit
0db28c0a46

+ 6 - 1
spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp

@@ -69,7 +69,12 @@ void SSpineWidget::SetData(USpineWidget *Widget) {
 		skeleton->setToSetupPose();
 		skeleton->setToSetupPose();
 		skeleton->updateWorldTransform();
 		skeleton->updateWorldTransform();
 		Vector<float> scratchBuffer;
 		Vector<float> scratchBuffer;
-		skeleton->getBounds(this->boundsMin.X, this->boundsMin.Y, this->boundsSize.X, this->boundsSize.Y, scratchBuffer);
+		float x, y, w, h;
+		skeleton->getBounds(x, y, w, h, scratchBuffer);
+		boundsMin.X = x;
+		boundsMin.Y = y;
+		boundsSize.X = w;
+		boundsSize.Y = h;
 	}
 	}
 }
 }