зеркало из https://github.com/mozilla/Spoke.git
Merge pull request #909 from mozilla/fix/spawner-scale
Fix spawner scale
This commit is contained in:
Коммит
566a4d80f2
|
@ -10,7 +10,7 @@ export default class SpawnerNode extends EditorNodeMixin(Model) {
|
||||||
static nodeName = "Spawner";
|
static nodeName = "Spawner";
|
||||||
|
|
||||||
static initialElementProps = {
|
static initialElementProps = {
|
||||||
initialScale: 1,
|
initialScale: "fit",
|
||||||
src: "https://sketchfab.com/models/a4c500d7358a4a199b6a5cd35f416466"
|
src: "https://sketchfab.com/models/a4c500d7358a4a199b6a5cd35f416466"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ export default class SpawnerNode extends EditorNodeMixin(Model) {
|
||||||
this.editor.renderer.addBatchedObject(this.model);
|
this.editor.renderer.addBatchedObject(this.model);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.initialScale) {
|
if (this.initialScale === "fit") {
|
||||||
this.scale.set(1, 1, 1);
|
this.scale.set(1, 1, 1);
|
||||||
|
|
||||||
if (this.model) {
|
if (this.model) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче