瀏覽代碼

Restore inline set_visible and remove trace in h3d.scene.Object

clementlandrin 1 年之前
父節點
當前提交
ad8d23efdf
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      h3d/scene/Object.hx

+ 1 - 5
h3d/scene/Object.hx

@@ -230,11 +230,7 @@ class Object {
 	inline function get_drawn() return flags.has(FDrawn);
 	inline function set_posChanged(b) return flags.set(FPosChanged, b || follow != null);
 	inline function set_culled(b) return flags.set(FCulled, b);
-	function set_visible(b) {
-		if (this.name == "light")
-			trace(b);
-		return flags.set(FVisible,b);
-	};
+	inline function set_visible(b) return flags.set(FVisible,b);
 	inline function set_allocated(b) return flags.set(FAllocated, b);
 	inline function set_followPositionOnly(b) return flags.set(FFollowPositionOnly, b);
 	inline function set_lightCameraCenter(b) return flags.set(FLightCameraCenter, b);