Skip to content

Commit db15986

Browse files
committed
Merge pull request #500 from fodinabor/getRotationEuler
Make getRotation more consistent: *replaced getEulerRotation with getRot...
2 parents 6a0c8fb + 6693cee commit db15986

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Core/Contents/Include/PolyEntity.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ namespace Polycode {
393393
* Returns the entity's rotation as euler angles
394394
@return Entity's rotation as euler angles
395395
*/
396-
Vector3 getEulerRotation() const;
396+
Vector3 getRotationEuler() const;
397397

398398
/**
399399
* Returns the entity's pitch combined with the combined pitch of its parent.

Core/Contents/Source/PolyEntity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ Vector3 Entity::getScale() const {
709709
return scale;
710710
}
711711

712-
Vector3 Entity::getEulerRotation() const {
712+
Vector3 Entity::getRotationEuler() const {
713713
return rotation;
714714
}
715715

IDE/Contents/Source/PolycodeProps.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2526,9 +2526,9 @@ void TransformSheet::Update() {
25262526
lastScale = entity->getScale();
25272527
}
25282528

2529-
if(entity->getEulerRotation() != lastRotation) {
2530-
rotationProp->set(entity->getEulerRotation());
2531-
lastRotation = entity->getEulerRotation();
2529+
if(entity->getRotationEuler() != lastRotation) {
2530+
rotationProp->set(entity->getRotationEuler());
2531+
lastRotation = entity->getRotationEuler();
25322532
}
25332533
}
25342534

0 commit comments

Comments
 (0)