소스 검색

Interactives follow visibility

trethaller 7 년 전
부모
커밋
4ecee8c33a
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      hide/view/Level3D.hx

+ 3 - 2
hide/view/Level3D.hx

@@ -355,8 +355,9 @@ class Level3D extends FileView {
 				var o = ctx.local3d;
 				var mesh = o.getMeshes()[0];
 				var bounds = mesh.primitive.getBounds();
-				var collider = new h3d.col.ObjectCollider(o, bounds);
-				var int = new h3d.scene.Interactive(collider, sh.root3d);
+				var int = new h3d.scene.Interactive(bounds, o);
+				var collider = mesh.primitive.getCollider();
+				int.preciseShape = collider;
 				int.propagateEvents = true;
 				int.onClick = function(e) {
 					if(K.isDown(K.CTRL) && curEdit != null) {