chore: remove flip X and flip Y from baking options UI
Build and Deploy / build-and-push (push) Successful in 37s
Build and Deploy / build-and-push (push) Successful in 37s
This commit is contained in:
+2
-13
@@ -4693,25 +4693,14 @@ export default function Editor() {
|
||||
</select>
|
||||
{selectedObject.materialProps?.mappingType && selectedObject.materialProps.mappingType !== 'uv' && selectedObject.materialProps.mappingType !== 'triplanar' && (
|
||||
<div className="flex flex-col gap-2 mt-2 bg-zinc-800/50 p-2 rounded border border-zinc-700/50">
|
||||
<span className="text-[10px] text-zinc-400 font-bold mb-1">Baking Options</span>
|
||||
<div className="flex gap-4">
|
||||
<label className="flex items-center gap-1.5 cursor-pointer">
|
||||
<input type="checkbox" checked={bakeOptions.flipX} onChange={e => setBakeOptions(p => ({...p, flipX: e.target.checked}))} className="rounded bg-zinc-900 border-zinc-700 text-blue-500 w-3 h-3" />
|
||||
<span className="text-[10px] text-zinc-300">Flip X</span>
|
||||
</label>
|
||||
<label className="flex items-center gap-1.5 cursor-pointer">
|
||||
<input type="checkbox" checked={bakeOptions.flipY} onChange={e => setBakeOptions(p => ({...p, flipY: e.target.checked}))} className="rounded bg-zinc-900 border-zinc-700 text-blue-500 w-3 h-3" />
|
||||
<span className="text-[10px] text-zinc-300">Flip Y</span>
|
||||
</label>
|
||||
</div>
|
||||
<button
|
||||
onClick={() => {
|
||||
if (!selectedObject.materialProps?.map) return;
|
||||
setBakeRequest({
|
||||
id: selectedObject.id,
|
||||
type: selectedObject.materialProps.mappingType as any,
|
||||
flipX: bakeOptions.flipX,
|
||||
flipY: bakeOptions.flipY,
|
||||
flipX: false,
|
||||
flipY: false,
|
||||
timestamp: Date.now()
|
||||
});
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user