From d04d27b406b856396102452cab0eedf315e94a54 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 7 Oct 2021 12:32:04 +1100 Subject: Sequencer: 2D cursor for the preview & transform - Use 2D cursor in the preview space using shortcuts matching the UV editor and 3D view. - Add Cursor tool, cursor transform. - Support for cursor and bound-box pivot. - Add pivot pie menu. --- source/blender/makesrna/intern/rna_space.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/makesrna/intern/rna_space.c') diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 652d2545e67..9d8e06b3c56 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -5690,6 +5690,13 @@ static void rna_def_space_sequencer(BlenderRNA *brna) rna_def_space_sequencer_preview_overlay(brna); rna_def_space_sequencer_timeline_overlay(brna); + + /* transform */ + prop = RNA_def_property(srna, "cursor_location", PROP_FLOAT, PROP_XYZ); + RNA_def_property_float_sdna(prop, NULL, "cursor"); + RNA_def_property_array(prop, 2); + RNA_def_property_ui_text(prop, "2D Cursor Location", "2D cursor location for this view"); + RNA_def_property_update(prop, NC_SPACE | ND_SPACE_CLIP, NULL); } static void rna_def_space_text(BlenderRNA *brna) -- cgit v1.2.3