mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Pose graph: fix import path and tweak (#15173)
This commit is contained in:
committed by
GitHub
parent
24541a82de
commit
cfd9bddacb
@@ -28,7 +28,8 @@ export function* getCreatePoseGraphNodeEntries(
|
||||
): Iterable<PoseGraphCreateNodeEntry> {
|
||||
type AbstractedConstructor<T = unknown> = abstract new (...args: any[]) => T;
|
||||
|
||||
if ((classConstructor as AbstractedConstructor) === PoseNode || (classConstructor as AbstractedConstructor) === PureValueNode) {
|
||||
if ((classConstructor as AbstractedConstructor) === PoseNode || (classConstructor as AbstractedConstructor) === PureValueNode ||
|
||||
classConstructor === PoseGraphOutputNode) {
|
||||
return;
|
||||
}
|
||||
const nodeClassMetadata = getPoseGraphNodeEditorMetadata(classConstructor as Constructor<PoseNode | PureValueNode>);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Layer, ProceduralPoseState, StateMachine } from "../../../../cocos/animation/marionette/animation-graph";
|
||||
import { PoseNodeStateMachine } from '../../../../cocos/animation/marionette/pose-graph/pose-nodes/state-machine';
|
||||
import { PoseGraph, PoseNode } from "../../../exports/new-gen-anim";
|
||||
import { PoseGraph } from "../../../../cocos/animation/marionette/pose-graph/pose-graph";
|
||||
import { PoseNode } from "../../../../cocos/animation/marionette/pose-graph/pose-node";
|
||||
|
||||
export function* visitPoseNodeInLayer(layer: Layer): Generator<PoseNode> {
|
||||
yield* visitPoseNodesInStateMachine(layer.stateMachine);
|
||||
|
||||
Reference in New Issue
Block a user