Skip to content

Commit

Permalink
Auto-save/reset camera position in Viewport.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelTallet committed Nov 23, 2019
1 parent b54b519 commit 7d208a1
Show file tree
Hide file tree
Showing 14 changed files with 3,121 additions and 166 deletions.
2 changes: 1 addition & 1 deletion source/pbr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# PBR plugin namespace.
module PBR

VERSION = '1.5.2'.freeze
VERSION = '1.5.3'.freeze

# Load translation if it's available for current locale.
TRANSLATE = LanguageHandler.new('pbr.strings')
Expand Down
2 changes: 1 addition & 1 deletion source/pbr/Resources/fr/pbr.strings
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"Export As glTF"="Exporter en tant que fichier glTF";
"Model well exported here:"="Modèle bien exporté ici :";

"Propagate materials to whole model? (Recommended)"="Propager les matériaux à l'ensemble du modèle ? (Recommandé)";
"Propagate Materials to Whole Model"="Propager les matériaux à l'ensemble du modèle";

"glTF export failed. Do you want help?"="L'export glTF a échoué. Voulez-vous de l'aide ?";
Expand Down Expand Up @@ -123,3 +122,4 @@
"SketchUp PBR Viewport"="Fenêtre de visu. RBP de SketchUp";
"Sunlight intensity"="Intensité de la lumière du soleil";
"Help"="Aide";
"Reset camera position"="Réinitialiser la position de la caméra";
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion source/pbr/Viewport App/assets/sketchup-locale.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sketchUpLocale = {"document_title":"","sunlight_intensity":"","help_link_href":"","help_link_text":""};
sketchUpLocale = {"document_title":"","sunlight_intensity":"","help_link_href":"","help_link_text":"","reset_cam_position":""};
5 changes: 3 additions & 2 deletions source/pbr/Viewport App/lib/claygl.modded.js
Original file line number Diff line number Diff line change
Expand Up @@ -34125,6 +34125,7 @@ var OrbitControl = Base.extend(function () {
* @type {clay.Node}
*/
target: null,

/**
* @type {clay.Vector3}
*/
Expand All @@ -34133,14 +34134,14 @@ var OrbitControl = Base.extend(function () {
/**
* Minimum distance to the center
* @type {number}
* @default 0.5
* @default 0.1
*/
minDistance: 0.1,

/**
* Maximum distance to the center
* @type {number}
* @default 2
* @default 1000
*/
maxDistance: 1000,

Expand Down
Loading

0 comments on commit 7d208a1

Please sign in to comment.