GreenCrowDev / hoodie

Hoodie is a plugin for Godot Engine 4 that offers a visual scripting interface for generating procedural geometry.
MIT License
308 stars 14 forks source link

Curve to Mesh UVs not stable when manipulated #32

Closed GreenCrowDev closed 6 months ago

GreenCrowDev commented 6 months ago

Steps to reproduce:

  1. New HoodieMesh
  2. Create a basic graph that uses Input Curve3D and Curve to Mesh nodes to generate a mesh
  3. Insert Decompose Mesh and Compose Mesh nodes inbetween Curve to Mesh and Output node
  4. Manipulate UVs with Separate XY and Combine XY, and using a Multiply node to scale X or Y
  5. Add a material to the surface
  6. Move one of the Curve3D control points, and you'll notice the uvs seem to reset, with the surface going gray.

Needs investigation.

Could be an issue with UV Array not being the right size.

https://github.com/GreenCrowDev/hoodie/assets/62719360/57eda2c6-f1f5-4e7b-a562-ed83195d3be6

EDIT: Probably related to not doing deep copies of Arrays in _process?