* added Asset propertygroup & User Assets collections to collections & scenes to store them explicitely
* overhauled UI to make use of this : also means names & paths are editable after the fact
* overhauled testing asset hierarchy scan accordingly
* added expertimental export of bevy_asset_loader compatible asset.ron files per level
* related tweaks & additions
* added correct injection of assets + export path to blueprints
* moved a few common elements to "core" for better reuse
* more tweaks/ experiments with paths handling
* moved & overhauled a few of the blueprint & assets tools
* lots of minor tweaks & changes
* minor tweaks & improvements to assets handling
* renamed a few auto export preferences for more coherence
* "assets" folder is now mandatory again and used by the various sub asset types
* blueprints/levels/materials paths in auto_export are not overwrite their relative values anymore,
but added their "full" variants & changed code using full paths to use those
* added back gltf exporter post export callback, in a cleaner fashion
* changing (wip) the way the various relative folders are auto generated in the folder selection UI
* lots of other minor tweaks & improvements
* improvements to assets ui
* assets ui now specific to per level data, not based on selection anymore
* blueprints ui now presents assets per blueprint
* a lot of tweaks & improvements in the areas above
* changed all various uses of short name to long_name
* same for type_names
* also changed bevy_registry_export to output "long_name" instead of "title" for coherence
* related changes & tweaks
* still WIP
* added handling of additional map flags
* added map handling in conversion from prop group
* added basic (& clunky) UI
* related boilerplate
* added various testing components to try this out & experiment with
* added operator to deal with the root path & sub paths in a smarter way
* various paths are not settable "manually" as pure text anymore
* overhauled ui for paths
* overhauled internal handling of paths
* further refinements to paths handling
* related fixes & tweaks
* UI restructure & split out of change detection
* basic export/assets folder now only available in Ui when blueprints are not in use
* overhauled bevy integration tests, now done in "two passes" as the external library needs to be exported first
* cleanups & improvements to the test above
* started overhauling & massively simplifying the rest of the tests, starting with change_tracking
* operator ui is not a file browser anymore
* restructured/recreated ui to work inside a props_dialog
* added ui_only toggles to control the "pseudo panels" (as panels are not supported in props dialogs)
* regrouped a few toggle in a more logical manner
* change sub type of a few properties to be directories
* some related cleanups
* added "marked" flag to Blueprints structs
* added correct support for combine modes for blueprints & levels
* added correct support for nested blueprints
* added additional helpers for blueprints
* fleshed out tests even more
* fixed some tests
* updated tests data
* updated both get_collections & get_levels to use information about combine modes
* basic implementation, seems to work, needs more tests & logic check
* related changes
* fixed issues with renaming after export (should have always been broken ???)
* fleshed out scene serialisation some more (parents & collections handling) + bubbling
* disabled bulk of tracker
* added notes for get collections & scenes about combine mode
* fixed some issues with main operator
* updated tests for more correctness
* etc
* aka added basics of serialization of scene(s) & brute compare
* added basics for transforms, custom properties, meshes, cameras & lights, & armatures
* should only run on save as I can imagine it could get quite costly, computation wise
* added some boilerplate for determining changed objects
* not hooked up to actual exporter yet
* already way more reliable than the depsgraph:
* ignores selections & related weird issues
* undo /redo proof
* expandable
* forcing depsgraph update when applying changes to gltf export settings
* lots of additional boilerplate for params change detection
* further updates to get information about changed parameters & objects in tracker
* a lot of related tweaks & changes
chore(bevy_components): removed annoying verbose info messages
* continued restructure of auto_export internals
* split out get_levels_to_export
* simplified, cleaned up & made get_collections_to_export more efficient (skipping useless computations based
on settings)
* moved more settings to addon_prefs, created boilerplate to create copies & inject additional params
* modified tracker's use of the above, so that the actual list of future exports is displayed
* a lot of other tweaks & cleanups
* added "hack-ish" tweak to make sure component additions/delections etc
are picked up correctly by the change tracker in auto_export
* cleaned up a few operator names
* very minor tweaks
* cleaned up most of the change detection tracking
* updated/ fleshed out & improved the tests
* improved sidebar ui (wip)
* moved listing of blueprints to export to sidebar
* improved display of changed objects
* currently restructuring rest of the code to be able to display BEFORE saving
what will get exported & what not
* a ton of other cleanups & tweaks
* moved temp scene prefix to new 'constants' file, updated code accordingly
* fixed, updated & refactored handling of auto export & gltf parameters
* added additional tests to changed_parameters
* added display of changes since last save in new side tab
* more investigation & fix attempts for change detection...
* various related tweaks & cleanups
* auto_export now defaults to being disabled (otherwise you will get export attempts etc even if you only
had the add-on installed !
* modified logic accordingly
* various related tweaks
* adjusted tests
* added workaround for backing up & restoring gltf export settings if there where any,
because it turns out in the glTF2_pre_export_callback, they already get created !
* added workaround for deleting the temporary gltf file, aka it needs an additional timer, because
the post export callback fires too early !
* added workaround to deal with the fact that operator uis have global state !!
aka make sure the settings used when calling the gltf exporter do not "contaminate" the normal exporter
* it all works, but sigh ...
* now all centralized in the operator's did_export_settings_change() function
* now works correctly ! ie only compares the parameters for auto & gltf
at the time of exporting ! ie it does not matter anymore how many parameters you changed, until you save/export
* this solves a lot of randomness bugs in change detection
* related & various cleanups
* added both gltf exporter button AND auto export button to side bar
* added storage of gltf settings
* auto_export now uses stored gltf settings
* updated override strategies of defaults vs gltf settings
* removed all gltf specific (not auto export) parameters from preferences
* updated auto export operator params changed logic to use updated system
* updated bevy integration test
* ui improvements
* various tweaks
* got a basic working version that runs the standard exporter with some overrides,
deletes the temporary exported gltf file, extracts the scene level settings etc
* convoluted as hell , but still better than the alternatives
* renamed Animated component to AnimationInfos, fleshed it out with additional
frame informations etc
* restructured & cleaned up Bevy & Blender code in those areas a bit
* various related minor tweaks
* added additional component on the Bevy side + experimented with handling the data in the testing setup
* added parsing of animation markers on the Blender side + injection of custom property/ component
* rough around the edges, but the basics work !
* auto_export now injecting the list of available animations into the "Animated" component
for any object with animations
* modified bevy side struct to match
* fleshed out testing of hierarchy
* added export of serialized hierarchy from the bevy side & comparing it with a reference
one on the python side
* various tweaks
* now various forms of nesting with parenting (not within collections) should be handled correctly
* restructured a large part of creating copies / duplicates
* removed some obsolete code
* related cleanups
* allows to not be restricted by bevy's a bit weird logic for AnimationPlayers
* updated crate & tooling
* updated testing example with a bit more complex nesting cases for testing
* now trying to copy the animation to the "empty" placeholder using animation linking operator
* now in gltf viewer we can see the two animations/actions, but still nothing in Bevy
* closes#80
* preliminary work for further asset management from the Blender side without needing additional dependencies & boilerplate on the Bevy side
* feat(auto_export):
* now injecting list/tree of sub blueprints to main scenes/levels & blueprints
* made blueprints/asset list conditional on NOT legacy mode
* feat(gltf_blueprints):
* basics of dynamic loading of sub_blueprints
* added same kind of logic to the loading of material files
* also made a more generic variant of the BlueprintAssetLoadTracker
* added gltf file path for more informative error in case a gltf is missing
* refactor():
* made the various gltf assets loaded by bevy_asset_loader optional (to handle the case where they are not present)
* updated all examples accordingly
* chore(crates): fixed links, slight tweaks, bumped versions
* closes#163
* closes#153
* closes#154
* feat(bevy_components): added tools for diagnostics/ finding & replacing invalid & unregistered components
* added ui for listing invalid & unregistered components
* added boilerplate & functionality for component renaming/replacing
* injection of invalid status & message in case the conversion did not work well
* added deletion of components individual & bulk
* added handling of wrong string for unit structs : allows detection of more wrong values for components
* added progress bars for bulk operators
* added docs for new features
* added tests
* added small "attempt to fix" button for unit struct uis in case they are invalid
* feat(bevy_components): added progress indicators for from/to custom properties
* various other minor ui tweaks for workflow improvement
* chore(crates): updated crates to Bevy 0.13
* updated deps
* updated / changed code where relevant
* updated README files
* bumped version numbers for upcoming release
* updated rust-toolchain
* updated assets where relevant
* closes#132
* feat(bevy_gltf_components):
* added GltfProcessed flag component to improve performance of iteration over added<gltfExtras>
* closes#144
* light & shadow processing is now integrated, to match lights coming from Blender: you can now control whether
lights cast shadows, the cascade resolution , background color etc from Blender
* closes#155
* feat(bevy_registry_export): added boilerplate to make registry path relative to assets folder
* closes#137
* feat(tools): added boilerplate for internal tools
* clean zip file generator for blender add-on releases
* example gltf file generator
* feat(lighting): added components, exporter support & testing for blender-configurable shadows
* added BlenderLightShadows component to bevy_gltf_components
* added writing shadow information to gltf_auto_export
* updated tests
* closes#157
Co-authored-by: Jan Hohenheim <jan@hohenheim.ch>
* closes#133
* fix(gltf_auto_export): corrected ron value for "spawnHere" components
* fix(bevy_components): fixed handling of empty/ unit structs
* updated to/from prop_groups
* updated tests/ expected files
* bumped version
* removed verbose "watching schema file for changes"
* fix(bevy_gltf_components): fixed issue of incorect handling of empty component values in non legacy mode:
* aka: replacing empty component values (ron strings) with '()' should ONLY happen in legacy mode
* even more aka: ron strings for component values should not be altered when not in legacy mode (provided ron
strings should be valid)
* tests():
* changed bevy_component tests to use testing/bevy_example as source for registry data
* removed testing/bevy_registry_export, as it is redudant
* related tweaks & cleanups
* chore(crates): bumped up versions because of breaking change
* chore(examples): updated registry export example to use up-to-date / fixed components data
* chore(bevy_gltf_components): added back warning about legacy mode, in a less spammy way
* docs(bevy_components): added notes about v0.3 breaking changes
* fix(gltf_auto_export): added fix for correct "deep-copying" of objects & hierarchy so that animated
meshes & nested hierarchies get exported correctly
* test(gltf_auto_export):
* added visual testing to check for overall regression :
* added screenshoting in bevy app
* added visual compare with reference screenshot on python side
* added testing of correct export of animated models
* added testing of correct export of empties
* added testing of correct export of nested hierarchies
* added testing of correct export of blueprints, with & without components etc
* fixes#147
* added filtering out of invalid components/ custom properties:
* includes filtering out of invalid / disabled components as defined in bevy_components, components_meta etc
* completely changed handling of "unique" (non blueprint) objects by copying them instead of moving/renaming them & manipulating their custom properties : much cleaner, much simpler !
* disabled default gltf export of optimised animations
* added tests !
* closes#139
* closes#141
* closes#142
* closes#146
* fixed issue with "reload registry" not clearing previous data
* added watcher/ poll system to automatically updated the registry & components list when the registry file has been changed
* BREAKING CHANGE ! changed internal representation of components, incompatible with v0.1, breaks UI values.
* added buttons to regenerate UI to account for/fix the above and to offer the ability to regenerate UI values from custom property values
* lots of cleanups
* added tests
* closes#127
* closes#124
* closes#121
* closes#130
* adds a new crate: ```bevy_registry_export``` to be able to create a json import of the registered component/type definitions
* adds a new Blender addon: ```bevy_components``` that takes that json data to generate custom UIs for components , to be to add & edit components easily in Blender
* also adds component metadata per object for more advanced features
* etc
* updates to bevy_gltf_components & bevy_gltf_blueprints to add legacy_mode to support the "old"/current style component definitions
* same with gltf_auto_export Blender add_on
* closes#60
* fundamental rewrite of a lot of aspects of the exporter, for cleaner code & to solve a number of issues
* set export_separate_dynamic_and_static_objects default to FALSE, as it is an edge use case
* added central tracker class, to track the post save & depsgraph changes
* auto_export is now more operator centric, with functional undo
* now storing add-on configuration at the blend file level (bpy.data.texts)
* found source of export issues ! mismatch between context.scene & context.window.scene (the last we can set, the other not)
* overhauled & cleaned up materials handling to avoid context issues & reliance on bpy.ops
* huge restructure of how temporary scenes are created & cleaned up
* added support for exports in edit_mode
* updated examples
* a lot more
* fixes#103
* fixes#112
* fixes#113
* fixes#114
* fixes#115
* fixes#116
* feat(bevy_gltf_save_load): saving & loading implemented
* created new crate for save & load features, uses & filters out blueprints for efficient loading
* saving & loading, even with dynamically spawned nested hierarchies works
* component filter , resource filter & save path root are configurable
* for saving: added removal & cleanup logic for children component with children
that have been filtered out: ie no more invalid children getting stored in the save files !
* added sending of event once saving is done
* feat(examples/save-load): example for the new crate
* loading level static & dynamic data as blueprints
* added a bit of ui when entering saving & loading states & cleanup when exiting
* feat(bevy_gltf_blueprints): significant rewrite of how the crate works
* simplified spawning process, no more spawning children containing blueprints etc
* simplified post process : instead of copying original entity into blueprint root
we now copy blueprint root data (components & children) into the original entity ! fixes#96
* much simpler code wise
* solves issue with needing to register components that we only use on the bevy side (not gltf)
since we are not copying the bevy data into the blueprints data
* added **copyComponents** helper to copy components from one entity to another, excluding existing
components on the target entity, & some bells & whistles
* **Name** is now optional when spawning a blueprint: closes#97
* **Transform** is now optional when spawning a blueprint: closes#98
* removed transform from bundle (BREAKING change)
* added (optional) **NoInBlueprint** component to have finer control over whether to inject the **InBlueprint** component inside spawned blueprint entities
* added (optional) **Library** component, so we can override library path when we want
* added (optional) **AddToGameWorld** component for convenience to automatically add entities to the game world, if there is one
* chore(bevy_gltf_components): removed verbose output, cleaned it up a bit
* feat(tools/auto_export): added option to split out "dynamic" objects in main scenes
* ie if a collection instance (or its original collection) has a "dynamic" (aka mutable, saveable etc)
flag it can get exported to a seperate gltf file (essentially acting like an "initial save")
* the rest of the levels (the "static" data) is exported without the dynamic objects and
can be reused with save files !
* scans for 'in-use' collections now correctly looks inside sub collections as well
* removed obsolete .gltf output (keeping only .glb & .gltf+bin+textures
* closes#92
* closes#93
* feat(multiple blend files): added example of multi blend file workflow
* feat(tools/auto_export):
* added collection_instances_combine_mode superseeds & replaces "export nested blueprints", with a lot more flexibilty
* added preferences & ui settings
* added (optional) use of marked assets as replacement for "autoExport" collection flag
* added correct cleaning up of temporary sub_collections
* feat(tools/auto_export): change detection added for material changes
* feat(tools/auto_export): blueprints now also use the "combine" settings for nested collections
* feat(tools/auto_export): added correct cleanup of data when removing hollow scenes, so that there is no orphan data left behind
* feat(tools/auto_export): changes to nested collections are now triggering change detection of root
(exportable collections)
* feat(tools/auto_export): now actually useful tracebacks using traceback.format_exc()
* various minor fixes, cleanups & UI description improvements
* docs(README): updated & fleshed out docs
* closes#87
* closes#86
* closes#85
* closes#79
* closes#61
* closes#68
* closes#41
* feat(bevy_gltf_blueprints):
* added support for nested blueprints
* added example/test for nested blueprints with multiple levels of nesting
* feat(tools/gltf_auto_export):
* implemented functionality to export nested blueprints/collection instances
* added add prefs to control nested blueprints export
* experiments with nested blueprints merge modes
* when exporting of nested blueprints is disabled, will not scan for nested blueprints
and thus no export them
* docs(): updated docs & added images for nested blueprints support
* feat(tools): scene component injection & export
- ambient light, shadowmap resolution, bloom intensity, ambient occlusion are now directly settable from scene components that are injected automatically in the scene
- relaxed requirements for changes(aka when to export gltf) for main scenes,
so that render , background etc changes also trigger a save
- added scene components examples
- added additional proxies & handling for camera & lights
- in relevant cases, made sure that entity specific components are not overridden by scene components
- added option to toggle scene level exports of params/ components
- ambient colour/ intensity is now also set as background/clear colour
- updated docs
* updates both gltf_auto_export & bevy_gltf_blueprints to avoid duplicating common materials across blueprints
* feat(tools/gltf_auto_export): added materials library export !
* export all materials in use by blueprints to a separate temporary scene with cubes (for now)
with the materials assigned
* injecting MaterialInfo components to each blueprint above with Material name + library name
* generated gltf is named based on the project/blend file, so multiple blend file projects
can each have their own material libraries
* added preferences & ui & handling to be able to toggle material library exports
* feat(bevy_gltf_blueprints): added support for materials library!
* material injection (toggleable via the plugin configuration)
* added example
* added materials library + texture files + updated assets
* added physics debug toggling
* updated documentation
* closes#63
* split up code in logical modules instead of one giant file
* added module structure, imports etc
* updated README
* add storing & reloading of lists of scenes
* minor cleanups & tweaks
* closes#64
* moved gltf_auto_export specific docs/images inside the addon's folder
* updated main title image
* refactor(examples): moved examples into more logic folders & changed to allow for per example dependencies
* chore(): updated docs, added docs, updated deps , cargo files etc
* fix exporter settings when changing blender project breaking the exporter
* add auto creation of library folder if it does not exist (also any gltf export path where folders are missing)
* main/level scene(s) now gets generated if there was no change, and they have never been generated before