repo: janusweb action: commit revision: path_from: revision_from: b4be3ea3ee41e091305e2b122bb246ecaf9e000d: path_to: revision_to:
commit b4be3ea3ee41e091305e2b122bb246ecaf9e000d Author: James BaicoianuDate: Fri Apr 26 00:45:47 2024 -0700 Fix text rotation and setting rotation via scripts diff --git a/scripts/janusbase.js b/scripts/janusbase.js
--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -918,6 +918,8 @@ elation.require(['engine.things.generic', 'utils.template', 'janusweb.parts'], f
this.frameupdates['zdir'] = false;
this.frameupdates['rotation'] = false;
this.frameupdates['rotation_dir'] = false;
+ this.frameupdates['rotation_order'] = false;
+ this.frameupdates['fwd'] = false;
for (var k in this.lastframevalues) {
this.lastframevalues[k].copy(this.properties[k]);
diff --git a/scripts/text.js b/scripts/text.js
--- a/scripts/text.js
+++ b/scripts/text.js
@@ -2,7 +2,6 @@ elation.require(['engine.things.label'], function() {
elation.component.add('engine.things.janustext', function() {
this.postinit = function() {
elation.engine.things.janustext.extendclass.postinit.call(this);
- this.frameupdates = [];
this.textcache = this.engine.getScratchObject('textcache');
this.defineProperties({
'text': { type: 'string', default: '', refreshGeometry: true },
@@ -30,7 +29,6 @@ elation.require(['engine.things.label'], function() {
'wireframe': { type: 'boolean', default: false, set: this.updateMaterial, comment: 'Wireframe rendering' },
});
this.emptygeometry = new THREE.BufferGeometry();
- elation.events.add(this.engine, 'engine_frame', elation.bind(this, this.handleFrameUpdates));
}
this.createObject3D = function() {
this.objects['3d'] = new THREE.Object3D();
-----END OF PAGE-----