Skip to content

Commit 6693cee

Browse files
author
Joachim Meyer
committed
Make getRotation more consistent: *replaced getEulerRotation with getRotationEuler
1 parent eff3355 commit 6693cee

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
@@ -363,7 +363,7 @@ namespace Polycode {
363363
* Returns the entity's rotation as euler angles
364364
@return Entity's rotation as euler angles
365365
*/
366-
Vector3 getEulerRotation() const;
366+
Vector3 getRotationEuler() const;
367367

368368
/**
369369
* 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
@@ -701,7 +701,7 @@ Vector3 Entity::getScale() const {
701701
return scale;
702702
}
703703

704-
Vector3 Entity::getEulerRotation() const {
704+
Vector3 Entity::getRotationEuler() const {
705705
return rotation;
706706
}
707707

IDE/Contents/Source/PolycodeProps.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,9 +2446,9 @@ void TransformSheet::Update() {
24462446
lastScale = entity->getScale();
24472447
}
24482448

2449-
if(entity->getEulerRotation() != lastRotation) {
2450-
rotationProp->set(entity->getEulerRotation());
2451-
lastRotation = entity->getEulerRotation();
2449+
if(entity->getRotationEuler() != lastRotation) {
2450+
rotationProp->set(entity->getRotationEuler());
2451+
lastRotation = entity->getRotationEuler();
24522452
}
24532453
}
24542454

0 commit comments

Comments
 (0)