Skip to content

Commit

Permalink
added transform controls
Browse files Browse the repository at this point in the history
  • Loading branch information
Walter Zimmer committed Dec 4, 2018
1 parent 42506cd commit b1d4c01
Show file tree
Hide file tree
Showing 6 changed files with 1,104 additions and 873 deletions.
429 changes: 156 additions & 273 deletions .idea/workspace.xml

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,12 @@
<script src="js/lib/controls/FlyControls.js"></script>
<!--<script src="js/lib/Lensflare.js"></script>-->
<!--<script src="js/lib/Lensflare.js"></script>-->

<script src="js/lib/Detector.js"></script>
<script src="js/lib/stats.min.js"></script>
<script src='js/lib/dat.gui.min.js'></script>
<script src="js/lib/controls/FirstPersonControls.js"></script>
<script src="js/lib/TransformControls.js"></script>
<script src="js/lib/controls/TransformControls.js"></script>
<script src='js/lib/controls/KeyboardState.js'></script>
<script src="js/lib/controls/threex.keyboardstate.js"></script>
<script src='js/lib/Projector.js'></script>
Expand Down
10 changes: 6 additions & 4 deletions js/base_label_tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -1192,10 +1192,12 @@ let labelTool = {
}
// open folder of selected object
let selectionIndex = annotationObjects.getSelectionIndex();
let channels = annotationObjects.contents[this.currentFileIndex][selectionIndex]["channels"];
for (let channelIdx in channels) {
if (channels.hasOwnProperty(channelIdx)) {
annotationObjects.select(selectionIndex, channels[channelIdx].channel);
if (selectionIndex !== -1) {
let channels = annotationObjects.contents[this.currentFileIndex][selectionIndex]["channels"];
for (let channelIdx in channels) {
if (channels.hasOwnProperty(channelIdx)) {
annotationObjects.select(selectionIndex, channels[channelIdx].channel);
}
}
}

Expand Down
Loading

0 comments on commit b1d4c01

Please sign in to comment.