浏览代码

Added ability to hide mesh using the visibility button

Geoffrey 7 年之前
父节点
当前提交
f7a5d498bf
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      io_scene_godot/converters/mesh.py

+ 1 - 0
io_scene_godot/converters/mesh.py

@@ -35,6 +35,7 @@ def export_mesh_node(escn_file, export_settings, node, parent_path):
 
         mesh_node = NodeTemplate(node.name, "MeshInstance", parent_path)
         mesh_node['mesh'] = "SubResource({})".format(mesh_id)
+        mesh_node['visible'] = not node.hide
         if not physics.has_physics(node) or not physics.is_physics_root(node):
             mesh_node['transform'] = node.matrix_local
         else: