Merge pull request #10654 from dotCooCoo/fix/script-image-matrix-locks

Scripts: image matrix assignment refuses locked and hidden images
This commit is contained in:
.CooCoo authored and GitHub committed 2026-12-03 07:34:43 -08:00
commit de71cfc9ef
4 files changed
+59 -5

No files matched your search

+3 -3
View File
@@ -41,16 +41,16 @@ use super::matrix::{self, Matrix};
use super::{Answer, Coords, Host, Item, arg, atomically, coordinate, edit_item, frame, number, paths, this_item, with_doc};
/// The error for an object on a locked artboard.
const ON_LOCKED_ARTBOARD: &str = "cannot transform objects on a locked artboard";
pub(super) const ON_LOCKED_ARTBOARD: &str = "cannot transform objects on a locked artboard";
/// The error for a locked object.
const LOCKED: &str = "cannot transform locked objects";
pub(super) const LOCKED: &str = "cannot transform locked objects";
/// The error for a guide while guides are locked.
const GUIDES_LOCKED: &str = "cannot transform a guide while guides are locked";
/// The error for a hidden object.
const HIDDEN: &str = "cannot transform hidden objects";
pub(super) const HIDDEN: &str = "cannot transform hidden objects";
/// The identity matrix.
const IDENTITY: Matrix = [1.0, 0.0, 0.0, 1.0, 0.0, 0.0];