From 0393d1ff2ebc378b3c4cff9b45f72ebc8a4ea516 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期二, 03 六月 2025 15:13:42 +0800
Subject: [PATCH] Merge branch 'master' into liuyang

---
 SourceCode/Bond/Servo/CGlass.cpp |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/SourceCode/Bond/Servo/CGlass.cpp b/SourceCode/Bond/Servo/CGlass.cpp
index e2b6259..77e292f 100644
--- a/SourceCode/Bond/Servo/CGlass.cpp
+++ b/SourceCode/Bond/Servo/CGlass.cpp
@@ -12,6 +12,11 @@
 
 	CGlass::~CGlass()
 	{
+
+	}
+
+	void CGlass::reset()
+	{
 		CPath* pPath = m_pPath;
 		while (pPath != nullptr) {
 			CPath* pTemp = pPath->getNext();
@@ -20,7 +25,7 @@
 		}
 		m_pPath = nullptr;
 
-		if (m_pBuddy != nullptr	&& m_type == MaterialsType::G1) {
+		if (m_pBuddy != nullptr) {
 			m_pBuddy->release();
 		}
 	}

--
Gitblit v1.9.3