feat: more rotation gizmo improvements

This commit is contained in:
Nick Fisher committed 2025-01-07 08:25:48 +08:00
1 parent 62cd85c148
commit 7cf1468f38
9 files changed
+7697 -7948

No files matched your search

@@ -8,5 +8,5 @@ ROTATION_GIZMO_GLB_PACKAGE:
ROTATION_GIZMO_GLB_ROTATION_GIZMO_OFFSET:
.int 0
ROTATION_GIZMO_GLB_ROTATION_GIZMO_SIZE:
.int 163152
.int 156056
@@ -8,5 +8,5 @@ _ROTATION_GIZMO_GLB_PACKAGE:
_ROTATION_GIZMO_GLB_ROTATION_GIZMO_OFFSET:
.int 0
_ROTATION_GIZMO_GLB_ROTATION_GIZMO_SIZE:
.int 163152
.int 156056
File diff suppressed because it is too large. Load diff
+6 -3
View File
@@ -201,14 +201,17 @@ namespace thermion
}
else
{
if(entity == axis->getEntity()) {
if (entity == axis->getEntity())
{
TRACE("MATCHED AXIS HEAD ENTITY");
result = GizmoPickResultType(axisIndex);
} else {
}
else
{
for (int entityIndex = 0; entityIndex < axis->getChildEntityCount(); entityIndex++)
{
auto childEntity = axis->getChildEntities()[entityIndex];
if (entity == childEntity)
{
TRACE("MATCHED AXIS CHILD ENTITY %d (index %d)", childEntity, entityIndex);