Selaa lähdekoodia

Missing cleanup of ChunkedScene

trethaller 4 vuotta sitten
vanhempi
commit
1a32eca24d
2 muutettua tiedostoa jossa 3 lisäystä ja 5 poistoa
  1. 1 3
      hide/comp/Scene.hx
  2. 2 2
      hide/comp/SceneEditor.hx

+ 1 - 3
hide/comp/Scene.hx

@@ -72,13 +72,11 @@ class Scene extends Component implements h3d.IDrawable {
 	public var speed : Float = 1.0;
 	public var speed : Float = 1.0;
 	public var visible(default, null) : Bool = true;
 	public var visible(default, null) : Bool = true;
 	public var editor : hide.comp.SceneEditor;
 	public var editor : hide.comp.SceneEditor;
-	var chunkifyS3D : Bool = false;
 	var unFocusedTime = 0.;
 	var unFocusedTime = 0.;
 
 
-	public function new(chunkifyS3D: Bool = false, config, parent, el) {
+	public function new(config, parent, el) {
 		super(parent,el);
 		super(parent,el);
 		this.config = config;
 		this.config = config;
-		this.chunkifyS3D = chunkifyS3D;
 		element.addClass("hide-scene-container");
 		element.addClass("hide-scene-container");
 		canvas = cast new Element("<canvas class='hide-scene' style='width:100%;height:100%'/>").appendTo(element)[0];
 		canvas = cast new Element("<canvas class='hide-scene' style='width:100%;height:100%'/>").appendTo(element)[0];
 		canvas.addEventListener("mousemove",function(_) canvas.focus());
 		canvas.addEventListener("mousemove",function(_) canvas.focus());

+ 2 - 2
hide/comp/SceneEditor.hx

@@ -171,7 +171,7 @@ class SceneEditor {
 	var sceneData : PrefabElement;
 	var sceneData : PrefabElement;
 	var lastRenderProps : hrt.prefab.RenderProps;
 	var lastRenderProps : hrt.prefab.RenderProps;
 
 
-	public function new(view, data, ?chunkifyS3D : Bool = false) {
+	public function new(view, data) {
 		ide = hide.Ide.inst;
 		ide = hide.Ide.inst;
 		this.view = view;
 		this.view = view;
 		this.sceneData = data;
 		this.sceneData = data;
@@ -191,7 +191,7 @@ class SceneEditor {
 		favTree.autoOpenNodes = false;
 		favTree.autoOpenNodes = false;
 
 
 		var sceneEl = new Element('<div class="heaps-scene"></div>');
 		var sceneEl = new Element('<div class="heaps-scene"></div>');
-		scene = new hide.comp.Scene(chunkifyS3D, view.config, null, sceneEl);
+		scene = new hide.comp.Scene(view.config, null, sceneEl);
 		scene.editor = this;
 		scene.editor = this;
 		scene.onReady = onSceneReady;
 		scene.onReady = onSceneReady;
 		scene.onResize = function() {
 		scene.onResize = function() {