mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 21:02:17 +02:00
fix mac issue
This commit is contained in:
parent
ad92b172cb
commit
182c92b951
1 changed files with 16 additions and 6 deletions
|
@ -123,7 +123,7 @@ Rectangle {
|
|||
var wearable = wearablesCombobox.model.get(i);
|
||||
if (wearable.id === entityID) {
|
||||
wearablesCombobox.currentIndex = i;
|
||||
isSoft.enabled = entityHasAvatarJoints(entityID);
|
||||
softWearableTimer.restart();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -145,6 +145,20 @@ Rectangle {
|
|||
hoverEnabled: true;
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: softWearableTimer
|
||||
interval: 500
|
||||
running: false
|
||||
repeat: false
|
||||
onTriggered: {
|
||||
var currentWearable = getCurrentWearable();
|
||||
var soft = currentWearable ? currentWearable.relayParentJoints : false;
|
||||
var softEnabled = currentWearable ? entityHasAvatarJoints(currentWearable.id) : false;
|
||||
isSoft.set(soft);
|
||||
isSoft.enabled = softEnabled;
|
||||
}
|
||||
}
|
||||
|
||||
Column {
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: 12
|
||||
|
@ -262,16 +276,12 @@ Rectangle {
|
|||
var rotation = currentWearable ? currentWearable.localRotationAngles : { x : 0, y : 0, z : 0 };
|
||||
var scale = currentWearable ? currentWearable.dimensions.x / currentWearable.naturalDimensions.x : 1.0;
|
||||
var joint = currentWearable ? currentWearable.parentJointIndex : -1;
|
||||
var soft = currentWearable ? currentWearable.relayParentJoints : false;
|
||||
var softEnabled = currentWearable ? entityHasAvatarJoints(currentWearable.id) : false;
|
||||
|
||||
softWearableTimer.restart();
|
||||
|
||||
positionVector.set(position);
|
||||
rotationVector.set(rotation);
|
||||
scalespinner.set(scale);
|
||||
jointsCombobox.set(joint);
|
||||
isSoft.set(soft);
|
||||
isSoft.enabled = softEnabled;
|
||||
|
||||
|
||||
if (currentWearable) {
|
||||
|
|
Loading…
Reference in a new issue