Comments: describe the new drop, angle and cache code without product names
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
1ea493f257
commit
63a7483a48
@@ -41,7 +41,7 @@ pub fn parse_angle(s: &str) -> Option<f64> {
|
||||
s.parse().ok()
|
||||
}
|
||||
|
||||
/// After Effects' angle value, `0x+45.0°`, at `at` (top left): the revolutions and the degrees
|
||||
/// An angle value, `0x+45.0°`, at `at` (top left): the revolutions and the degrees
|
||||
/// are hot numbers of their own (drag to scrub, click to type) and changing one keeps the other.
|
||||
/// Returns the revolutions' rect, the degrees' rect and the new angle when either changed.
|
||||
pub fn angle_field(ui: &mut egui::Ui, at: Pos2, id: egui::Id, v: f64, decimals: usize, t: &Tokens) -> (Rect, Rect, Option<f64>) {
|
||||
|
||||
@@ -2311,7 +2311,7 @@ pub fn show(app: &mut EffectcraftApp, ui: &mut egui::Ui, rect: Rect) {
|
||||
// Drop targets: effects from Effects & Presets go on the layer under the pointer. Footage and
|
||||
// comps from the Project panel and files from the Media Browser go where they are dropped: a
|
||||
// line shows the place in the stack, and over the time graph a marker shows the In point too
|
||||
// (Shift: at the current time), as in After Effects.
|
||||
// (Shift: at the current time).
|
||||
if let Some(payload) = egui::DragAndDrop::payload::<crate::panels::DragPayload>(&ctx)
|
||||
&& !matches!(*payload, crate::panels::DragPayload::Property { .. })
|
||||
&& let Some(ptr) = ctx.input(|i| i.pointer.hover_pos()).filter(|_| ui.rect_contains_pointer(rows_rect))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//! Dropping onto the Composition viewer, as in After Effects: footage, comps and solids from the
|
||||
//! Dropping onto the Composition viewer: footage, comps and solids from the
|
||||
//! Project panel and files from the Media Browser become layers centred where they are dropped
|
||||
//! (#85), and an effect from Effects & Presets goes on the layer under the pointer, outlined
|
||||
//! while it is dragged (#88). Agents do the same with `layer.addItem {position}`,
|
||||
|
||||
Reference in New Issue
Block a user