Skip to content

Commit 36e847d

Browse files
committed
修复剪裁错误
1 parent f6f88ca commit 36e847d

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

Spine/src/Spine36.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,6 @@ public override void Draw(SFML.Graphics.RenderTarget target, SFML.Graphics.Rende
199199
foreach (var slot in skeleton.DrawOrder)
200200
{
201201
var attachment = slot.Attachment;
202-
if (attachment is null)
203-
{
204-
clipping.ClipEnd(slot);
205-
continue;
206-
}
207202

208203
SFML.Graphics.Texture texture;
209204

@@ -254,6 +249,7 @@ public override void Draw(SFML.Graphics.RenderTarget target, SFML.Graphics.Rende
254249
}
255250
else
256251
{
252+
clipping.ClipEnd(slot);
257253
continue;
258254
}
259255

Spine/src/Spine38.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,6 @@ public override void Draw(SFML.Graphics.RenderTarget target, SFML.Graphics.Rende
208208
foreach (var slot in skeleton.DrawOrder)
209209
{
210210
var attachment = slot.Attachment;
211-
if (attachment is null)
212-
{
213-
clipping.ClipEnd(slot);
214-
continue;
215-
}
216211

217212
SFML.Graphics.Texture texture;
218213

@@ -263,6 +258,7 @@ public override void Draw(SFML.Graphics.RenderTarget target, SFML.Graphics.Rende
263258
}
264259
else
265260
{
261+
clipping.ClipEnd(slot);
266262
continue;
267263
}
268264

0 commit comments

Comments
 (0)