mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
revert lock skinned-mesh-render transform (#12706)
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
import {
|
||||
ccclass, executeInEditMode, executionOrder, help, menu, tooltip, type,
|
||||
} from 'cc.decorator';
|
||||
import { EDITOR } from 'internal:constants';
|
||||
import type { AnimationClip } from '../../core/animation/animation-clip';
|
||||
import { Material } from '../../core/assets';
|
||||
import { Skeleton } from '../assets/skeleton';
|
||||
@@ -105,9 +104,6 @@ export class SkinnedMeshRenderer extends MeshRenderer {
|
||||
|
||||
public onLoad () {
|
||||
super.onLoad();
|
||||
if (EDITOR) {
|
||||
this._objFlags |= legacyCC.Object.Flags.IsPositionLocked | legacyCC.Object.Flags.IsRotationLocked | legacyCC.Object.Flags.IsScaleLocked;
|
||||
}
|
||||
this._tryBindAnimation();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user