Bläddra i källkod

[cpp] Fix constants of InheritTimeline

Mario Zechner 1 år sedan
förälder
incheckning
39b6a50311

+ 3 - 0
spine-cpp/spine-cpp/include/spine/InheritTimeline.h

@@ -62,6 +62,9 @@ namespace spine {
 
 
 	private:
 	private:
 		int _boneIndex;
 		int _boneIndex;
+
+        static const int ENTRIES = 2;
+        static const int INHERIT = 1;
 	};
 	};
 }
 }
 
 

+ 0 - 3
spine-cpp/spine-cpp/src/spine/InheritTimeline.cpp

@@ -41,9 +41,6 @@ using namespace spine;
 
 
 RTTI_IMPL(InheritTimeline, Timeline)
 RTTI_IMPL(InheritTimeline, Timeline)
 
 
-#define ENTRIES 2
-#define INHERIT 1
-
 InheritTimeline::InheritTimeline(size_t frameCount, int boneIndex) : Timeline(frameCount, ENTRIES),
 InheritTimeline::InheritTimeline(size_t frameCount, int boneIndex) : Timeline(frameCount, ENTRIES),
                                                                      _boneIndex(boneIndex) {
                                                                      _boneIndex(boneIndex) {
 	PropertyId ids[] = {((PropertyId) Property_Inherit << 32) | boneIndex };
 	PropertyId ids[] = {((PropertyId) Property_Inherit << 32) | boneIndex };