feat: add rotate node
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m54s
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m54s
This commit is contained in:
@@ -10,6 +10,21 @@
|
||||
export let input: NodeInput;
|
||||
export let value: any;
|
||||
export let id: string;
|
||||
|
||||
$: if (value === undefined || value === null) {
|
||||
switch (input.type) {
|
||||
case 'float':
|
||||
value = 0;
|
||||
case 'integer':
|
||||
value = 0;
|
||||
case 'boolean':
|
||||
value = false;
|
||||
case 'select':
|
||||
value = 0;
|
||||
case 'vec3':
|
||||
value = [0, 0, 0];
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
{#if input.type === 'float'}
|
||||
|
||||
Reference in New Issue
Block a user