Przeglądaj źródła

Make getRotation more consistent: *replaced getEulerRotation with getRotationEuler

Joachim Meyer 11 lat temu
rodzic
commit
6693ceefe4

+ 1 - 1
Core/Contents/Include/PolyEntity.h

@@ -363,7 +363,7 @@ namespace Polycode {
              * Returns the entity's rotation as euler angles
              @return Entity's rotation as euler angles
              */
-            Vector3 getEulerRotation() const;
+            Vector3 getRotationEuler() const;
 		
 			/**
 			* Returns the entity's pitch combined with the combined pitch of its parent.

+ 1 - 1
Core/Contents/Source/PolyEntity.cpp

@@ -701,7 +701,7 @@ Vector3 Entity::getScale() const {
 	return scale;
 }
 
-Vector3 Entity::getEulerRotation() const {
+Vector3 Entity::getRotationEuler() const {
     return rotation;
 }
 

+ 3 - 3
IDE/Contents/Source/PolycodeProps.cpp

@@ -2446,9 +2446,9 @@ void TransformSheet::Update() {
         lastScale = entity->getScale();
     }
     
-    if(entity->getEulerRotation() != lastRotation) {
-        rotationProp->set(entity->getEulerRotation());
-        lastRotation = entity->getEulerRotation();
+    if(entity->getRotationEuler() != lastRotation) {
+        rotationProp->set(entity->getRotationEuler());
+        lastRotation = entity->getRotationEuler();
     }
 }