feat(web): add dynamic area layouts and camera views
Area headers now expose a real ⋮ menu with split, join, swap, duplicate, maximize/focus, close and reset; the first operation measures the CSS grid into normalized rects and switches that workspace to an OPFS-persisted custom layout while reusing the existing React content per slot. ViewportNavigation gains Numpad0 camera view with last-view restore, framing-only navigation when unlocked, Camera to View lock that writes the camera object (rotation-mode-aware native setObjectTransform), and Ctrl+Alt+Numpad0 camera-to-view. Camera lock persists per area. Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -14182,9 +14182,21 @@ bool web_engine_blend_main_set_transform(WebBlendMainState *state,
|
||||
}
|
||||
for (int axis = 0; axis < 3; axis++) {
|
||||
object->loc[axis] = translation[axis];
|
||||
object->rot[axis] = rotation_euler[axis];
|
||||
object->scale[axis] = scale[axis];
|
||||
}
|
||||
float quaternion[4];
|
||||
eul_to_quat(quaternion, rotation_euler.data());
|
||||
switch (object->rotmode) {
|
||||
case ROT_MODE_QUAT:
|
||||
copy_qt_qt(object->quat, quaternion);
|
||||
break;
|
||||
case ROT_MODE_AXISANGLE:
|
||||
quat_to_axis_angle(object->rotAxis, &object->rotAngle, quaternion);
|
||||
break;
|
||||
default:
|
||||
copy_v3_v3(object->rot, rotation_euler.data());
|
||||
break;
|
||||
}
|
||||
object->id.recalc |= ID_RECALC_TRANSFORM;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user