Skip to content

Commit 87f2c61

Browse files
committed
chore: Remove unnecessary RTT checks and cleanup code in CoreNode
1 parent e9cbe6b commit 87f2c61

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/core/CoreNode.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,8 +1119,6 @@ export class CoreNode extends EventEmitter {
11191119

11201120
if (
11211121
this.props.strictBounds === true &&
1122-
this.rtt === false &&
1123-
this.parentHasRenderTexture === false &&
11241122
this.renderState === CoreNodeRenderState.OutOfBounds
11251123
) {
11261124
return;
@@ -2016,10 +2014,6 @@ export class CoreNode extends EventEmitter {
20162014
}
20172015

20182016
private cleanupRenderTexture() {
2019-
if (this.texture === null) {
2020-
return;
2021-
}
2022-
20232017
this.unloadTexture();
20242018
this.clearRTTInheritance();
20252019

@@ -2105,8 +2099,6 @@ export class CoreNode extends EventEmitter {
21052099
sw: this.props.srcWidth,
21062100
sh: this.props.srcHeight,
21072101
});
2108-
2109-
this.onChangeIsRenderable(true);
21102102
}
21112103

21122104
set imageType(type: 'regular' | 'compressed' | 'svg' | null) {
@@ -2223,11 +2215,6 @@ export class CoreNode extends EventEmitter {
22232215
this.childUpdateType |= UpdateType.RenderBounds | UpdateType.Children;
22242216
}
22252217

2226-
// setRTTUpdates(type: number) {
2227-
// this.hasRTTupdates = true;
2228-
// this.parent?.setRTTUpdates(type);
2229-
// }
2230-
22312218
animate(
22322219
props: Partial<CoreNodeAnimateProps>,
22332220
settings: Partial<AnimationSettings>,

0 commit comments

Comments
 (0)