UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

21 lines (20 loc) 565 B
"use strict"; import { BaseSopOperation } from "./_Base"; import { InputCloneMode } from "../../../engine/poly/InputCloneMode"; export class NullSopOperation extends BaseSopOperation { static type() { return "null"; } cook(input_contents, params) { const core_group = input_contents[0]; if (core_group) { return core_group; } else { return this.createCoreGroupFromObjects([]); } } convertExportParamData(options) { } } NullSopOperation.DEFAULT_PARAMS = {}; NullSopOperation.INPUT_CLONED_STATE = InputCloneMode.FROM_NODE;