1
0
Fork 0

[studio] fix: Fix the pattern templates

- "inherited: true" is wrong as it doesn't hide the "from" path
- the brian template had incorrect part inheritance, back was inheriting the front part instead of the base brian back part
- bent had a similar issue as brian
This commit is contained in:
Jonathan Haas 2025-05-01 11:24:54 +02:00
parent 5cfa9df287
commit cd2b005be7
No known key found for this signature in database
GPG key ID: 038B790C471EBCE9
5 changed files with 11 additions and 11 deletions

View file

@ -1,7 +1,7 @@
import { front } from './front.mjs' import { back as brianBack } from '@freesewing/brian'
export const back = { export const back = {
from: front, from: brianBack,
name: '{{ name }}.back', name: '{{ name }}.back',
hide: { from: true }, hide: { from: true },
options: {}, options: {},

View file

@ -1,7 +1,7 @@
import { base } from '@freesewing/brian' import { front as brianFront } from '@freesewing/brian'
export const front = { export const front = {
from: base, from: brianFront,
name: '{{ name }}.front', name: '{{ name }}.front',
hide: { from: true }, hide: { from: true },
measurements: [], measurements: [],

View file

@ -1,9 +1,9 @@
import { front } from './front.mjs' import { back as brianBack } from '@freesewing/brian'
export const back = { export const back = {
from: front, from: brianBack,
name: '{{ name }}.back', name: '{{ name }}.back',
hide: { inherited: true }, hide: { from: true },
options: {}, options: {},
draft: ({ part }) => { draft: ({ part }) => {
return part return part

View file

@ -1,9 +1,9 @@
import { base } from '@freesewing/brian' import { front as brianFront } from '@freesewing/brian'
export const front = { export const front = {
from: base, from: brianFront,
name: '{{ name }}.front', name: '{{ name }}.front',
hide: { inherited: true }, hide: { from: true },
measurements: [], measurements: [],
options: {}, options: {},
draft: ({ part }) => { draft: ({ part }) => {

View file

@ -3,7 +3,7 @@ import { front as titanFront } from '@freesewing/titan'
export const front = { export const front = {
from: titanFront, from: titanFront,
name: '{{ name }}.front', name: '{{ name }}.front',
hide: { inherited: true }, hide: { from: true },
measurements: [], measurements: [],
options: {}, options: {},
draft: ({ part }) => { draft: ({ part }) => {