Skip to content

Fix #47, 10, 21: Reference points/alpha sorting, xml reload options, UV map preservation, performance improvements#52

Open
avan069 wants to merge 4 commits intoBenchmarkSims:mainfrom
avan069:main
Open

Fix #47, 10, 21: Reference points/alpha sorting, xml reload options, UV map preservation, performance improvements#52
avan069 wants to merge 4 commits intoBenchmarkSims:mainfrom
avan069:main

Conversation

@avan069
Copy link

@avan069 avan069 commented Sep 21, 2025

Fix for #47

  • Fix reference points defaulting to geometric origin of meshes, instead use Blender object origin.
  • Enables alpha-sorting via reference point/object origin

Fix for #10 (largely superseded by PR #53)

  • Reload option for DOF/switch/callback.xml source files added to add-on preferences dialog.
  • Clears scene/global context/cache then forces reload, avoids persistent cache blocking xml updates.

- Fix reference points defaulting to geometric origin of meshes, instead use Blender object Origin.
- Enable alpha-sorting via reference point/object origin

Fix for 47: BenchmarkSims#47
- Reload option for DOF/switch/callback.xml source files added to add-on preferences dialog.
- Clears scene/global context/cache then forces reload, avoids persistent cache blocking xml updates.
@avan069 avan069 changed the title Fix #47: Use Object Origins for Primitive Reference Points Fix #47, 10: Reference points, switch/dof/callback.xml reload options Sep 22, 2025
- Fix BenchmarkSims#21 - At mesh join, rename active UV layer to "UVMap" if required to prevent data loss
- Improve performance in join loop by batching join operation - approx 10% performance increase in scenes heavy with non-mesh nodes, approx 50% in scenes heavy with mesh nodes (not thoroughly tested for actual performance gains, but it's definitely better :) )
@avan069 avan069 changed the title Fix #47, 10: Reference points, switch/dof/callback.xml reload options Fix #47, 10, 21: Reference points/alpha sorting, xml reload options, UV map preservation, performance improvements Sep 23, 2025
@avan069
Copy link
Author

avan069 commented Sep 23, 2025

Added fix for #21 - ensures active UV map is named "UVMap" so it's data is not discarded at join.

Introduced batched join operations for meshes for performance gain.

Attempt to strengthen handling of UV maps in join operations, particularly use names to avoid stale reference
@avan069
Copy link
Author

avan069 commented Sep 28, 2025

DOF/switch.xml reload implementation immediately superseded by PR #53 due to significant number of edge cases in xml migration found. Unlikely (bigger to smaller file) scenarios mostly, but potential to cause major headaches.

Note for documentation:

  • Alpha sorting via origins (reference points,) trial and error. (Note)

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