Merge main into menu-parity branch; point AE menu entries at main's real commands
- Integrate main (render queue, timeline/keys, time remap, masks/pen, 3D, MCP/CLI). - Menu tree now runs renderQueue.add, layer.enableTimeRemap, layer.timeReverse, layer.freezeFrame/OnLastFrame, prop.separateDimensions, mask.setClosed, layer.cameraSettings, view.3d.* / view.3d.last / view.reset3DView, main's layer.autoOrient and keyframe velocity/interpolation/time-stretch dialogs; matching stubs deleted (view.3d.default stays disabled). - Keyframe clipboard is main's (keys.copy/paste); Paste Reversed Keyframes reuses it. Animation-menu commands moved to commands/animation.rs. - Main's spec menu paths/labels aligned with AE (Camera Settings under Layer > Camera, "..." labels, Freeze On Last Frame). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -60,14 +60,23 @@ fn parse_args() -> Result<Args, String> {
|
||||
Ok(a)
|
||||
}
|
||||
|
||||
/// One frame, first queueing the app's synthetic input (kittest doesn't call
|
||||
/// `raw_input_hook`); the harness runs one frame per queued event.
|
||||
fn step_frame(h: &mut Harness<'_, EffectcraftApp>) {
|
||||
for e in h.state_mut().take_synthetic_input() {
|
||||
h.event(e);
|
||||
}
|
||||
h.step();
|
||||
}
|
||||
|
||||
/// Step the app for `secs` of wall time so background frame renders land in the viewer.
|
||||
fn settle(h: &mut Harness<'_, EffectcraftApp>, secs: f64) {
|
||||
let end = Instant::now() + Duration::from_secs_f64(secs);
|
||||
while Instant::now() < end {
|
||||
h.step();
|
||||
step_frame(h);
|
||||
std::thread::sleep(Duration::from_millis(30));
|
||||
}
|
||||
h.step();
|
||||
step_frame(h);
|
||||
}
|
||||
|
||||
fn snap(h: &mut Harness<'_, EffectcraftApp>, path: &str) -> Result<(), String> {
|
||||
@@ -129,7 +138,7 @@ fn main() {
|
||||
// Requests are answered on a later frame (some wait for input to be processed).
|
||||
let deadline = Instant::now() + Duration::from_secs(10);
|
||||
let reply = loop {
|
||||
harness.step();
|
||||
step_frame(&mut harness);
|
||||
if let Ok(v) = reply_rx.try_recv() {
|
||||
break v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user