mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-06 05:53:08 -05:00
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:
4 files changed
+59
-5
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user