Skip to content

Commit

Permalink
disabled rotation on brush, pencil
Browse files Browse the repository at this point in the history
  • Loading branch information
viliusle committed Jan 10, 2022
1 parent c2aa459 commit d71629e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
12 changes: 6 additions & 6 deletions images/test-collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"opacity": 100,
"order": 2,
"composition": "source-over",
"rotate": null,
"rotate": 0,
"data": null,
"params": {
"size": 45,
Expand Down Expand Up @@ -124,7 +124,7 @@
"opacity": 100,
"order": 3,
"composition": "source-over",
"rotate": null,
"rotate": 0,
"data": null,
"params": {
"size": 30,
Expand Down Expand Up @@ -180,7 +180,7 @@
"opacity": 100,
"order": 4,
"composition": "source-over",
"rotate": null,
"rotate": 0,
"data": [
[
{
Expand Down Expand Up @@ -351,7 +351,7 @@
"opacity": 100,
"order": 5,
"composition": "source-over",
"rotate": null,
"rotate": 0,
"data": [
[
{
Expand Down Expand Up @@ -399,7 +399,7 @@
"opacity": 100,
"order": 6,
"composition": "source-over",
"rotate": null,
"rotate": 0,
"data": [
[
{
Expand Down Expand Up @@ -447,7 +447,7 @@
"opacity": 100,
"order": 7,
"composition": "source-over",
"rotate": null,
"rotate": 0,
"data": [
[
{
Expand Down
4 changes: 3 additions & 1 deletion src/js/core/base-selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ class Base_selection_class {
var draw_rotation = () => {
var settings = this.find_settings();

if (settings.data === null || settings.data.status == 'draft'
if (settings.data === null
|| settings.data.status == 'draft'
|| settings.data.rotate === null
|| (settings.data.hide_selection_if_active === true && settings.data.type == config.TOOL.name)) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/tools/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -2252,7 +2252,7 @@ class Text_class extends Base_tools_class {
render_function: [this.name, 'render'],
x: mouse.x,
y: mouse.y,
rotate: null,
rotate: 0,
is_vector: true,
};
app.State.do_action(
Expand Down

0 comments on commit d71629e

Please sign in to comment.