Skip to content

Commit ac45fe9

Browse files
committed
Merge branch 'master' into gh-pages
2 parents e668079 + 03f7080 commit ac45fe9

File tree

8 files changed

+16
-4
lines changed

8 files changed

+16
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: "Linux"
1313
os: linux
1414
script:
15-
- npm run prepublish
15+
- npm run build-electron
1616
- sudo apt-get install rpm
1717
- electron-builder --publish=onTagOrDraft
1818

js/interface/keyboard.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ Keybinds.loadKeymap = function(id, from_start_screen = false) {
408408
Keybinds.no_overlap = function(k1, k2) {
409409
return Condition.mutuallyExclusive(k1.condition, k2.condition);
410410
}
411+
const overlap_exempt = [1,2,3];
411412
export function updateKeybindConflicts() {
412413
for (var key in Keybinds.structure) {
413414
Keybinds.structure[key].conflict = false;
@@ -427,6 +428,7 @@ export function updateKeybindConflicts() {
427428
&& keybind.shift === keybind2.shift
428429
&& keybind.alt === keybind2.alt
429430
&& keybind.meta === keybind2.meta
431+
&& overlap_exempt.includes(keybind.key) == false // avoid conflict between click to select, click to drag camera etc.
430432
&& !Keybinds.no_overlap(action, Keybinds.actions[i])
431433
) {
432434
keybind.setConflict();

js/misc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { currentwindow } from "./native_apis";
33
window.osfs = '/'
44
window.open_dialog = false;
55
window.open_interface = false;
6+
window.Format = 0;
7+
window.Project = 0;
68

79
export const Pressing = {
810
shift: false,

js/modeling/weight_paint.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ new Tool('weight_brush', {
116116
if (Math.pow(last_click_pos[0]-click_pos[0], 2) + Math.pow(last_click_pos[1]-click_pos[1], 2) < 30) {
117117
return;
118118
}
119+
if (Preview.selected.controls.hasMoved) return;
119120
last_click_pos = click_pos;
120121

121122
data = data ?? preview.raycast(event);

js/outliner/mesh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ export class Mesh extends OutlinerElement {
749749
for (let fkey in this.faces) {
750750
this.faces[fkey].vertices.replace(this.faces[fkey].getSortedVertices());
751751
}
752-
this.preview_controller.updateUV(this);
752+
this.preview_controller.updateGeometry(this);
753753
}
754754
forAllFaces(cb) {
755755
for (let fkey in this.faces) {

js/outliner/outliner.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2083,7 +2083,13 @@ Interface.definePanels(function() {
20832083
},
20842084
menu: new Menu([
20852085
new MenuSeparator('add_element'),
2086-
'add_element',
2086+
{
2087+
id: 'add_element',
2088+
name: 'action.add_element',
2089+
description: 'action.add_element.desc',
2090+
icon: BarItems.add_element.icon,
2091+
children: BarItems.add_element.side_menu.structure
2092+
},
20872093
'add_group',
20882094
new MenuSeparator('copypaste'),
20892095
'paste',

js/preview/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2299,7 +2299,7 @@ BARS.defineActions(function() {
22992299
colored_solid: {name: true, icon: 'fas.fa-square-plus', condition: () => (!Toolbox.selected.allowed_view_modes || Toolbox.selected.allowed_view_modes.includes('colored_solid'))},
23002300
wireframe: {name: true, icon: 'far.fa-square', condition: () => (!Toolbox.selected.allowed_view_modes || Toolbox.selected.allowed_view_modes.includes('wireframe'))},
23012301
uv: {name: true, icon: 'grid_guides', condition: () => (!Toolbox.selected.allowed_view_modes || Toolbox.selected.allowed_view_modes.includes('uv'))},
2302-
normal: {name: true, icon: 'fa-square-caret-up', condition: () => ((!Toolbox.selected.allowed_view_modes || Toolbox.selected.allowed_view_modes.includes('normal')) && Mesh.all.length)},
2302+
normal: {name: true, icon: 'fa-square-caret-up', condition: () => ((!Toolbox.selected.allowed_view_modes || Toolbox.selected.allowed_view_modes.includes('normal')))},
23032303
vertex_weight: {name: true, icon: 'weight', condition: () => ArmatureBone.all.length && (!Toolbox.selected.allowed_view_modes || Toolbox.selected.allowed_view_modes.includes('vertex_weight'))},
23042304
weighted_bone_colors: {name: true, icon: 'weight', condition: () => ArmatureBone.all.length && (!Toolbox.selected.allowed_view_modes || Toolbox.selected.allowed_view_modes.includes('weighted_bone_colors'))},
23052305
material: {name: true, icon: 'pages', condition: () => ((!Toolbox.selected.allowed_view_modes || Toolbox.selected.allowed_view_modes.includes('material')) && TextureGroup.all.find(tg => tg.is_material))},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
"build-test-portable": "npm run build-electron && electron-builder --windows portable",
132132
"publish-windows": "npm run build-electron && electron-builder -w --publish=onTagOrDraft && node ./scripts/rename_portable.js && electron-builder --windows portable --publish=onTagOrDraft",
133133
"publish-mac": "npm run build-electron && electron-builder --publish=always",
134+
"publish-linux": "electron-builder --linux --publish=always",
134135
"pwa": "node ./scripts/generate_pwa.js",
135136
"prepublish": "npm run build-web && npm run pwa && npm run generate-docs",
136137
"prepublish-beta": "node ./scripts/enable_beta.js && npm run build-web && npm run pwa && npm run generate-docs",

0 commit comments

Comments
 (0)