diff --git a/ui/property_panel.py b/ui/property_panel.py index 8322f6b4..a8fff5c0 100644 --- a/ui/property_panel.py +++ b/ui/property_panel.py @@ -1181,26 +1181,9 @@ class PropertyPanelManager: for child in node.getChildren(): q.append((child, eff)) - # def _toggleModelVisibility(self, model, state): - # """切换模型可见性状态""" - # try: - # visible = (state == Qt.Checked) - # self._setUserVisible(model, visible) - # - # collision_nodes = model.findAllMatches("**/modelCollision_*") - # for collision_node in collision_nodes: - # collision_node.hide() - # - # except Exception as e: - # print(f"切换模型可见性失败: {str(e)}") - # import traceback - # traceback.print_exc() - def _toggleModelVisibility(self, model, state): """切换模型可见性状态""" try: - - # 特殊处理灯光对象 scene_manager = None if hasattr(self.world, 'scene_manager'):