mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 19:55:07 +02:00
Add rotation and upDown handle resizing to entity edit tools
This commit is contained in:
parent
17209ae0d1
commit
643f28eb3f
1 changed files with 13 additions and 0 deletions
|
@ -2462,6 +2462,19 @@ SelectionDisplay = (function () {
|
|||
size: grabberSize,
|
||||
});
|
||||
}
|
||||
var handleSize = Vec3.length(diff) * GRABBER_DISTANCE_TO_SIZE_RATIO * 5;
|
||||
Overlays.editOverlay(yawHandle, {
|
||||
scale: handleSize,
|
||||
});
|
||||
Overlays.editOverlay(pitchHandle, {
|
||||
scale: handleSize,
|
||||
});
|
||||
Overlays.editOverlay(rollHandle, {
|
||||
scale: handleSize,
|
||||
});
|
||||
Overlays.editOverlay(grabberMoveUp, {
|
||||
scale: handleSize,
|
||||
});
|
||||
}
|
||||
}
|
||||
Script.update.connect(that.updateHandleSizes);
|
||||
|
|
Loading…
Reference in a new issue