Skip to content

Feature/add svg textures#8

Merged
IAnMove merged 8 commits into
developmentfrom
feature/add_svg_textures
Apr 12, 2026
Merged

Feature/add svg textures#8
IAnMove merged 8 commits into
developmentfrom
feature/add_svg_textures

Conversation

@IAnMove
Copy link
Copy Markdown
Owner

@IAnMove IAnMove commented Apr 12, 2026

@codex review and make a summary of all the features in this pr

@IAnMove
Copy link
Copy Markdown
Owner Author

IAnMove commented Apr 12, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e36ccaac6c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/modules/svg/svg-rasterize.js Outdated
Comment on lines +10 to +11
const trimmed = svgMarkup.trim();
if (!trimmed.startsWith('<svg')) return '';
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Accept SVG prologs before validating markup

normalizeSvgMarkup rejects any input whose trimmed text does not start with <svg>, so common SVG files that begin with an XML declaration/doctype (for example <?xml ...?><svg ...>) are treated as invalid and cannot be imported through the new SVG workbench/file flow. This blocks a broad class of real-world SVG assets even though they are valid SVG documents.

Useful? React with 👍 / 👎.

applyTextureTransform(texture, previousTransform);
mesh.userData.texture = texture;
mesh.userData.textureEnabled = true;
delete mesh.userData.textureProcessing;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve texture FX metadata when undoing texture apply

applyTexture now clears mesh.userData.textureProcessing, but the undo action created in the same function only restores map/color/enable flags and never restores the previous processing settings. If a user replaces a processed texture and then undoes, the old texture comes back without its FX metadata, so subsequent editor/export behavior can diverge from the pre-action state.

Useful? React with 👍 / 👎.

@IAnMove IAnMove merged commit 46e3b42 into development Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant