Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -244,6 +244,10 @@ export const useModelStore = create<ModelStore>((set, get) => ({
|
|||||||
models: state.models.map(m => m.id === id ? { ...m, locked: !m.locked } : m),
|
models: state.models.map(m => m.id === id ? { ...m, locked: !m.locked } : m),
|
||||||
})),
|
})),
|
||||||
|
|
||||||
|
setModelColor: (id, color) => set((state) => ({
|
||||||
|
models: state.models.map(m => m.id === id ? { ...m, color } : m),
|
||||||
|
})),
|
||||||
|
|
||||||
duplicateModel: (id) => {
|
duplicateModel: (id) => {
|
||||||
const state = get();
|
const state = get();
|
||||||
if (state.models.length >= MAX_MODELS) return;
|
if (state.models.length >= MAX_MODELS) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user