Explorar o código

[cpp] Closes #1713, dark color was not set in Slot::setToSetupPose().

badlogic %!s(int64=5) %!d(string=hai) anos
pai
achega
993391602b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      spine-cpp/spine-cpp/src/spine/Slot.cpp

+ 1 - 0
spine-cpp/spine-cpp/src/spine/Slot.cpp

@@ -55,6 +55,7 @@ Slot::Slot(SlotData &data, Bone &bone) :
 
 void Slot::setToSetupPose() {
 	_color.set(_data.getColor());
+	if  (_hasDarkColor) _darkColor.set(_data.getDarkColor());
 
 	const String &attachmentName = _data.getAttachmentName();
 	if (attachmentName.length() > 0) {