Skip to content

Commit e5c2a56

Browse files
authored
WebGPURenderer: Fix the use of same Material with different Skeleton (#27398)
1 parent 722bb09 commit e5c2a56

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/jsm/renderers/common/RenderObject.js

+6
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ export default class RenderObject {
129129

130130
}
131131

132+
if ( object.skeleton ) {
133+
134+
cacheKey += object.skeleton.uuid + ',';
135+
136+
}
137+
132138
if ( object.morphTargetInfluences ) {
133139

134140
cacheKey += object.morphTargetInfluences.length + ',';

0 commit comments

Comments
 (0)