-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #498 from kdvalin/rc/2.4.0
Release Canidate 2.4.0 changes
- Loading branch information
Showing
31 changed files
with
1,101 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,6 @@ | |
# api keys | ||
/src/keys | ||
|
||
# doc scripts | ||
GenerateDocsWindows.bat | ||
|
||
# misc | ||
.DS_Store | ||
.env* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Blender MTL File: 'None' | ||
# Material Count: 1 | ||
|
||
newmtl None | ||
Ns 500 | ||
Ka 0.8 0.8 0.8 | ||
Kd 0.8 0.8 0.8 | ||
Ks 0.8 0.8 0.8 | ||
d 1 | ||
illum 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Blender v2.90.1 OBJ File: '' | ||
# www.blender.org | ||
mtllib c.mtl | ||
o Cube_Cube.001 | ||
v -1.000000 -1.000000 1.000000 | ||
v -0.446396 1.000000 1.000000 | ||
v -1.000000 -1.000000 -1.000000 | ||
v -1.000000 1.000000 -1.000000 | ||
v 1.000000 -1.000000 1.000000 | ||
v 0.377481 1.000000 0.032235 | ||
v 1.000000 -1.000000 -1.000000 | ||
v 1.000000 2.114706 -1.681411 | ||
vt 0.375000 0.000000 | ||
vt 0.625000 0.000000 | ||
vt 0.625000 0.250000 | ||
vt 0.375000 0.250000 | ||
vt 0.625000 0.500000 | ||
vt 0.375000 0.500000 | ||
vt 0.625000 0.750000 | ||
vt 0.375000 0.750000 | ||
vt 0.625000 1.000000 | ||
vt 0.375000 1.000000 | ||
vt 0.125000 0.500000 | ||
vt 0.125000 0.750000 | ||
vt 0.875000 0.500000 | ||
vt 0.875000 0.750000 | ||
vn -0.9814 0.1358 0.1358 | ||
vn -0.1309 -0.1309 -0.9827 | ||
vn 0.9583 0.1865 0.2166 | ||
vn 0.3156 0.2283 0.9210 | ||
vn 0.0000 -1.0000 0.0000 | ||
vn -0.2081 0.9379 0.2777 | ||
usemtl None | ||
s off | ||
f 1/1/1 2/2/1 4/3/1 3/4/1 | ||
f 3/4/2 4/3/2 8/5/2 7/6/2 | ||
f 7/6/3 8/5/3 6/7/3 5/8/3 | ||
f 5/8/4 6/7/4 2/9/4 1/10/4 | ||
f 3/11/5 7/6/5 5/8/5 1/12/5 | ||
f 8/5/6 4/13/6 2/14/6 6/7/6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "myr", | ||
"version": "2.3.1", | ||
"version": "2.4.0", | ||
"private": false, | ||
"engines": { | ||
"node": "12.18.2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
import React from "react"; | ||
import { | ||
Button, | ||
ButtonBase, | ||
Icon, | ||
Tooltip, | ||
Popover, | ||
} from "@material-ui/core"; | ||
import "../../css/KeyboardShortcut.css"; | ||
|
||
const general = [ | ||
{ | ||
shortcut: ["Ctrl/⌘", "S"], | ||
description: "Save scene" | ||
}, | ||
{ | ||
shortcut: ["Ctrl/⌘", "Shift", "S"], | ||
description: "Save scene as" | ||
}, | ||
{ | ||
shortcut: ["Ctrl/⌘", "Enter"], | ||
description: "Render scene" | ||
}, | ||
]; | ||
|
||
const editor = [ | ||
{ | ||
shortcut: ["Ctrl/⌘", "/"], | ||
description: "Comment current or selected line of code" | ||
}, | ||
{ | ||
shortcut: ["Alt/Option", "Up"], | ||
description: "Move current line of code up 1 line" | ||
}, | ||
{ | ||
shortcut: ["Alt/Option", "Down"], | ||
description: "Move current line of code down 1 line" | ||
}, | ||
{ | ||
shortcut: ["Alt/⌘", "D"], | ||
description: "Delete current line of code" | ||
} | ||
]; | ||
|
||
const scene = [ | ||
{ | ||
shortcut: ["W"], | ||
description: "Move forwards" | ||
}, | ||
{ | ||
shortcut: ["S"], | ||
description: "Move backwards" | ||
}, | ||
{ | ||
shortcut: ["A"], | ||
description: "Move left" | ||
}, | ||
{ | ||
shortcut: ["D"], | ||
description: "Move right" | ||
}, | ||
{ | ||
shortcut: ["Space"], | ||
description: "Move up" | ||
}, | ||
{ | ||
shortcut: ["Shift"], | ||
description: "Move down" | ||
}, | ||
]; | ||
|
||
class KeyboardShortcut extends React.Component { | ||
constructor(props){ | ||
super(props); | ||
this.state = { | ||
open: false, | ||
anchorEl: null | ||
}; | ||
} | ||
|
||
shortcutHelper = (data) => { | ||
let shortcuts = []; | ||
data.shortcut.forEach((key,i)=>{ | ||
shortcuts.push(<kbd>{key}</kbd>); | ||
if(i < data.shortcut.length-1){ | ||
shortcuts.push(" + "); | ||
} | ||
}); | ||
return (<p>{shortcuts} {data.description}</p>); | ||
}; | ||
|
||
handleClick = (event) =>{ | ||
this.setState({ | ||
open: true, | ||
anchorEl: event.target}); | ||
}; | ||
|
||
handleClose = () => { | ||
this.setState({ | ||
open: false, | ||
anchorEl: null}); | ||
}; | ||
|
||
render(){ | ||
return( | ||
<div> | ||
<Tooltip title="Keyboard Shortcut"> | ||
<Button | ||
variant="contained" | ||
size="small" | ||
color="primary" | ||
onClick={this.handleClick}> | ||
<Icon className="material-icons">keyboard</Icon> | ||
</Button> | ||
</Tooltip> | ||
<Popover | ||
id="simple-popover" | ||
anchorEl={this.state.anchorEl} | ||
anchorOrigin={{ | ||
vertical:"top", | ||
horizontal: "left", | ||
}} | ||
transformOrigin={{ | ||
vertical: "bottom", | ||
hotizontal: "left" | ||
}} | ||
open={this.state.open} | ||
onClose={this.handleClose}> | ||
<div className="keyboard-shortcut"> | ||
<ButtonBase | ||
style={{ position: "absolute", right: 15, top: 15 }} | ||
onClick={this.handleClose} > | ||
<Icon className="material-icons">clear</Icon> | ||
</ButtonBase > | ||
<section className="right"> | ||
<p className="title">General Commands</p> | ||
{ | ||
general.map(e => {return this.shortcutHelper(e);}) | ||
} | ||
</section> | ||
<section className="right"> | ||
<p className="title">Editor Commands</p> | ||
{ | ||
editor.map(e => {return this.shortcutHelper(e);}) | ||
} | ||
</section> | ||
<section className="right"> | ||
<p className="title">Scene Controls</p> | ||
{ | ||
scene.map(e => {return this.shortcutHelper(e);}) | ||
} | ||
</section> | ||
</div> | ||
<p className="note">⌘: Command key for macOS user</p> | ||
</Popover> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default KeyboardShortcut; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.