Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev to master for v3.6.0 #613

Merged
merged 241 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
241 commits
Select commit Hold shift + click to select a range
b690f93
Added files related to creating release candidates
StandingPadAnimations Sep 10, 2023
a389739
Updated patch for MCprep 3.5 RC-3
StandingPadAnimations Sep 10, 2023
e156592
Merge branch 'dev' into mcprep-rc
StandingPadAnimations Sep 10, 2023
f7b632e
Added build steps for release candidates
StandingPadAnimations Sep 10, 2023
e88f205
Added patch to remove RC ignore filter in updater
StandingPadAnimations Sep 10, 2023
3578810
Moved patch to correct location
StandingPadAnimations Sep 11, 2023
7627727
Update HOW_TO_BUILD.md
StandingPadAnimations Sep 15, 2023
93e9a50
Merge branch 'dev' into mcprep-rc
StandingPadAnimations Sep 24, 2023
7b87949
Added patch to change tracker ID for RCs
StandingPadAnimations Sep 24, 2023
a2a9d1d
Removed rc-filter-remove patch
StandingPadAnimations Oct 1, 2023
df17952
Upgrade to BpyBuild 0.3.0
StandingPadAnimations Dec 19, 2023
77c88e0
Updated reference command in CONTRIBUTING.md
StandingPadAnimations Dec 21, 2023
d5214ba
Added action-scripts folder with BpyBuild actions
StandingPadAnimations Dec 21, 2023
785508e
Added Ignore Filters action as default
StandingPadAnimations Dec 21, 2023
8aff66a
Updated ignore_filters.py to print deleted files
StandingPadAnimations Dec 21, 2023
37cfd77
Updated build command in run_tests.py
StandingPadAnimations Dec 21, 2023
359e21c
Added print statement to dev.py
StandingPadAnimations Dec 21, 2023
aa342cc
Updated bpy-build.yaml
StandingPadAnimations Dec 24, 2023
7535d8e
Added .blend filter for dev builds
StandingPadAnimations Dec 26, 2023
7469142
Switched to BpyBuild ignore filters
StandingPadAnimations Dec 26, 2023
f6ed28b
Revert "Switched to BpyBuild ignore filters"
StandingPadAnimations Dec 26, 2023
4447e7c
Updated config option in BpyBuild
StandingPadAnimations Dec 26, 2023
c6f9726
Added warning to ignore_filters.py
StandingPadAnimations Dec 26, 2023
4e08885
Added error object for better user experience
StandingPadAnimations Jan 7, 2024
81c23e1
Switched to BaseException for MCprepError
StandingPadAnimations Jan 20, 2024
78b2c1c
Removed redundant variable
StandingPadAnimations Jan 20, 2024
2ccf24c
Merge pull request #530 from Moo-Ack-Productions/mcprep-error-class
StandingPadAnimations Jan 20, 2024
5dab16f
Refactored colorspace setup to be more flexible
StandingPadAnimations Jan 20, 2024
2617e2b
Update with respect to dev
StandingPadAnimations Jan 26, 2024
70e1498
First commit for i18n
StandingPadAnimations Jan 1, 2024
7302024
Added .venv to gitignore
StandingPadAnimations Jan 1, 2024
673cac0
Fixed missing ) and added additional string
StandingPadAnimations Jan 1, 2024
5278053
Moved import statement for inspect
StandingPadAnimations Jan 31, 2024
ece69d0
Reduced nesting in function
StandingPadAnimations Jan 31, 2024
9825b71
refactor(comment): Refactored comment in util.py
StandingPadAnimations Jan 31, 2024
fc917e6
Merge pull request #536 from Moo-Ack-Productions/non-color-fixes
StandingPadAnimations Jan 31, 2024
146810a
Added some metadata to English PO file
StandingPadAnimations Jan 31, 2024
5f68ffe
build(config): Removed ignore filter
StandingPadAnimations Feb 2, 2024
28f9c6f
Merge pull request #513 from Moo-Ack-Productions/bpy-build-update
StandingPadAnimations Feb 2, 2024
7a89fa0
Update .gitignore
StandingPadAnimations Feb 3, 2024
422ca9e
chore: removed MCprep_resources from gitignore
StandingPadAnimations Feb 3, 2024
16c11a6
feat: Added zn_CN to Languages
StandingPadAnimations Feb 3, 2024
d742226
refactor(language): moved en to en_US
StandingPadAnimations Feb 3, 2024
821c38c
feat: make MCprep follow the user's Blender locale
StandingPadAnimations Feb 3, 2024
8af5d8d
refactor(languages): moved to zn_HANS
StandingPadAnimations Feb 3, 2024
7c457b0
fix: made translations change on the fly
StandingPadAnimations Feb 3, 2024
3655697
fix: Added fallback for non-existent translations
StandingPadAnimations Feb 3, 2024
2b8a9b7
fix: Fixed fallback
StandingPadAnimations Feb 3, 2024
ba75206
Added some details to MCprep POT
StandingPadAnimations Feb 3, 2024
7c78a02
docs: Added documentation on translating MCprep
StandingPadAnimations Feb 4, 2024
6b8ea9b
docs(i18n): Removed redundant line
StandingPadAnimations Feb 4, 2024
7204cee
Updated POT file
StandingPadAnimations Feb 4, 2024
6d23569
chore(i18n): Added new strings to zn_HANS
StandingPadAnimations Feb 4, 2024
d9fe7fb
Recompiled zh_HANS
StandingPadAnimations Feb 4, 2024
474ff11
fix(annotations): Added missing annotation to _
StandingPadAnimations Feb 4, 2024
3524fc3
docs(i18n): Added developer documentation
StandingPadAnimations Feb 9, 2024
1ec8095
Merge branch 'milestone-3-6-0' into i18n-support-attempt-3
StandingPadAnimations Feb 10, 2024
951c3f3
Added polib to dependencies
StandingPadAnimations Feb 12, 2024
84e8c19
build: Added dictionary generator for i18n
StandingPadAnimations Feb 12, 2024
bd616e4
Added use of bpy.app.translations
StandingPadAnimations Feb 12, 2024
432bb40
fix(i18n): Fixed detection of translations.py
StandingPadAnimations Feb 12, 2024
733e28a
Added autobuilding of MO files to default action
StandingPadAnimations Feb 12, 2024
5a2d5f7
docs(i18n): Updated i18n docs for maintainers
StandingPadAnimations Feb 12, 2024
69871e5
build(i18n): Added comments to mo compile script
StandingPadAnimations Feb 12, 2024
8f6f809
docs(i18n): Added BpyBuild to i18n docs
StandingPadAnimations Feb 12, 2024
6ce1cae
chore(git): Added MO files to .gitignore
StandingPadAnimations Feb 12, 2024
c75ee13
refactor(removal): Remove MCprep optimizer
StandingPadAnimations Feb 12, 2024
8288d5d
Added polib directly in the source tree
StandingPadAnimations Feb 13, 2024
b999e44
build: Added separate translate action
StandingPadAnimations Feb 14, 2024
e362bee
build: added if-name-main to all actions
StandingPadAnimations Feb 15, 2024
e5eaab0
Merge pull request #543 from Moo-Ack-Productions/remove-optimizer
StandingPadAnimations Feb 18, 2024
cd70e34
docs(i18n): Updated developer docs
StandingPadAnimations Feb 20, 2024
00a4179
Readded flake8 to requirements.txt
StandingPadAnimations Feb 20, 2024
b751201
docs(i18n): Removed negative tone from docs
StandingPadAnimations Feb 20, 2024
dca6245
Revert "Added polib directly in the source tree"
StandingPadAnimations Feb 20, 2024
d9345e8
Merge branch 'milestone-3-6-0' into i18n-support-attempt-3
StandingPadAnimations Feb 20, 2024
9e3e1a1
Updated POT file
StandingPadAnimations Feb 20, 2024
8d7fdb0
Merge pull request #538 from Moo-Ack-Productions/i18n-support-attempt-3
StandingPadAnimations Feb 20, 2024
f0938e8
Updated contributing guide readme
TheDuckCow Feb 20, 2024
a95b7e9
Merge pull request #544 from Moo-Ack-Productions/readme-pip-install-u…
TheDuckCow Feb 20, 2024
487bfcb
Added msg field to MCprepError
StandingPadAnimations Feb 29, 2024
936cb84
refactor: have convert_mtl use MCprepError
StandingPadAnimations Feb 29, 2024
f29d308
refactor: General refactoring of world.py
StandingPadAnimations Mar 1, 2024
d57a48e
refactor: util.py refactoring for new error type
StandingPadAnimations Mar 1, 2024
49e5bbb
Removed default_materials.py
StandingPadAnimations Mar 1, 2024
4a8cc63
refactor: Refactored find_from_texture_pack
StandingPadAnimations Mar 8, 2024
fddbe9c
feat: Implemented CommonMCOBJ handling for imports
StandingPadAnimations Mar 24, 2024
61eff57
refactor: updated UI to use new exporter handling
StandingPadAnimations Mar 24, 2024
8e98cfb
Fixed typo in export_bounds_* keys
StandingPadAnimations Mar 24, 2024
373ae95
Fixed typo in export_bounds_* keys
StandingPadAnimations Mar 24, 2024
a419189
Added guard statement in get_exporter
StandingPadAnimations Mar 24, 2024
0454218
refactor: Migrated remaining pure string checks
StandingPadAnimations Mar 24, 2024
d5760d1
Updated is_atlas_export
StandingPadAnimations Mar 24, 2024
12123ef
Fixed incorrect keyword args in parser
StandingPadAnimations Mar 24, 2024
ab2e163
fix: Reduced memory usage of header parser
StandingPadAnimations Mar 26, 2024
2da614e
Added BSD license to commonmcobj_parser.py
StandingPadAnimations Mar 30, 2024
8d4efc0
Added email to copyright in commonmcobj_parser.py
StandingPadAnimations Mar 30, 2024
5d8ff42
Added licensing information for other components
StandingPadAnimations Mar 30, 2024
c7b82e2
Cleaned up LICENSE-3RD-PARTY.txt a little
StandingPadAnimations Mar 30, 2024
383f71e
Removed extra .txt in README
StandingPadAnimations Mar 30, 2024
e3b75a7
reft: updated uses of find_from_texturepack
StandingPadAnimations Apr 7, 2024
0b25c43
doc: updated docstring for detect_form
StandingPadAnimations Apr 7, 2024
273b1e1
init no-prep
zNightlord Apr 15, 2024
be39966
adding comma space for info text
zNightlord Apr 15, 2024
5501768
format
zNightlord Apr 15, 2024
c6ef511
format again
zNightlord Apr 15, 2024
79c884e
again missed a few
zNightlord Apr 15, 2024
5ba5556
feat: added basic forward compat for headers
StandingPadAnimations Apr 15, 2024
b4d467e
docs: Updated BlenderChanges.md
StandingPadAnimations Apr 19, 2024
a9e600c
Updated test run script and refreshed data file for MC 1.20.5
TheDuckCow Apr 28, 2024
7e133c6
build: Add script to generate POT file + Migration to BpyBuild 0.4 (#…
StandingPadAnimations Apr 28, 2024
074d9a1
chore: Merging Milestone 3.6.0 to Dev
StandingPadAnimations Apr 28, 2024
d16acfb
Merge pull request #564 from Moo-Ack-Productions/updated-resource-and…
TheDuckCow Apr 28, 2024
c13ed0d
requested, merge skip
zNightlord Apr 28, 2024
1f22236
MCprep 3.6 RC-1 (#566)
StandingPadAnimations Apr 28, 2024
8291899
chore: Merge zNightlord/prop-no-prep
StandingPadAnimations Apr 29, 2024
02224b4
docs: Added section on signing off commits
StandingPadAnimations Apr 29, 2024
346810b
docs: Cleaned up sign off section
StandingPadAnimations Apr 29, 2024
cab0a16
docs: Added missing linebreaks in sign off section
StandingPadAnimations Apr 29, 2024
4e49c77
docs: Removed trailing \
StandingPadAnimations Apr 29, 2024
4b920a4
Merge branch 'common-mc-obj-v1' into refactoring-3-6-0
StandingPadAnimations May 1, 2024
76a6d4d
chore: Merge refactoring-3-6-0
StandingPadAnimations May 1, 2024
dac8241
i18n: Add UTF-8 charset to POT
StandingPadAnimations May 1, 2024
0117eae
i18n: Force UTF-8 encoding for file generation
StandingPadAnimations May 1, 2024
74a5367
build: Added Blender 4.1 and 4.2 to build config
StandingPadAnimations May 3, 2024
945fbca
Merge pull request #568 from Moo-Ack-Productions/fix-pot-encoding
StandingPadAnimations May 5, 2024
62ceb23
cmcobj: Header info is now stored inside an empty
StandingPadAnimations May 9, 2024
6b9257f
tracking: Re-enabled exporter tracking
StandingPadAnimations May 9, 2024
0e34012
Revert "chore: Merging Milestone 3.6.0 to Dev"
StandingPadAnimations May 9, 2024
91f706b
Merge milestone-3-6-0 into dev
StandingPadAnimations May 9, 2024
4e638c4
build(i18n): Reeadd UTF-8 Encoding Fixes
StandingPadAnimations May 9, 2024
a8abe55
Merge pull request #571 from Moo-Ack-Productions/milestone-3-6-0-remerge
StandingPadAnimations May 10, 2024
d4c711c
Merge branch 'dev' into common-mc-obj-v1
StandingPadAnimations May 10, 2024
07a5b92
style: Moved update_matrices to util.py
StandingPadAnimations May 10, 2024
841db9e
feat(CommonMCOBJ): Hide OBJ empty in viewport
StandingPadAnimations May 10, 2024
ee03fd5
build(i18n): build_pot now extracts MCprep version
StandingPadAnimations May 10, 2024
2a3e551
Merge pull request #574 from Moo-Ack-Productions/build_pot-version-de…
StandingPadAnimations May 12, 2024
a4328a2
fix: Fixed missing variables for exporter tracking
StandingPadAnimations May 13, 2024
326ad54
docs: Added --signoff example
StandingPadAnimations May 13, 2024
3a27084
Merge pull request #567 from Moo-Ack-Productions/sign-off-commits
StandingPadAnimations May 13, 2024
e54a4d1
build: Fixed issue with BpyError return values
StandingPadAnimations May 13, 2024
e29826c
fix: Add use emission checkbox to textureswap
StandingPadAnimations May 13, 2024
ed3c589
Merge pull request #577 from Moo-Ack-Productions/use-emission-texture…
TheDuckCow May 16, 2024
022a712
style(build): Cleaned up returns in translate.py
StandingPadAnimations May 16, 2024
e18f2ee
Merge pull request #576 from Moo-Ack-Productions/build_pot-version-de…
StandingPadAnimations May 16, 2024
a60b8bc
rc-files: Update Version Patch
StandingPadAnimations May 17, 2024
54f4219
rc-files: Fix bug with bl_idname in tracker patch
StandingPadAnimations May 17, 2024
8cee972
Ru translation
Aspirata May 14, 2024
2c410f1
Lil update
Aspirata May 15, 2024
189fd15
i18n: Fixed Last-Translator for ru_RU translation
StandingPadAnimations May 23, 2024
19da433
Merge pull request #582 from Moo-Ack-Productions/russion-translation
StandingPadAnimations May 23, 2024
34cb810
First setup of github action for automated blender testing
TheDuckCow Jun 1, 2024
971330f
Installing requirements via file instead of individually.
TheDuckCow Jun 1, 2024
e75df62
Don't look at me
TheDuckCow Jun 1, 2024
b0bc678
Limiting for a single functional test and updating the python setup ver
TheDuckCow Jun 1, 2024
619f6bc
build: Reconfigure is called outside of BpyBuild tests
StandingPadAnimations Jun 4, 2024
528bfba
feat: Enable EEVEE Next support
StandingPadAnimations Jun 4, 2024
feadcd9
Added step to download and place assets from a release
TheDuckCow Jun 5, 2024
669dce9
Updating to run all tests
TheDuckCow Jun 5, 2024
e2394c4
Adding some debug to sort out paths
TheDuckCow Jun 5, 2024
2fb23a5
Updated debug prints
TheDuckCow Jun 5, 2024
da24252
Yaml syntax change
TheDuckCow Jun 5, 2024
2b3f88a
Tuned outputs of download assets step
TheDuckCow Jun 5, 2024
bdbedf7
Testing with just material tests
TheDuckCow Jun 6, 2024
127359e
Additional print path debugging
TheDuckCow Jun 6, 2024
26eea78
Extra print after compile script ahead of test runs
TheDuckCow Jun 6, 2024
249489e
Lots of path debugging
TheDuckCow Jun 6, 2024
c8a7717
Sigh.
TheDuckCow Jun 6, 2024
cabdd1f
Force installing MCprep 'manually' to get the intended path.
TheDuckCow Jun 6, 2024
3633bf6
More debug prints
TheDuckCow Jun 6, 2024
c9fb96a
Are we having fun yet
TheDuckCow Jun 6, 2024
9088ed3
🤞
TheDuckCow Jun 6, 2024
4b1b286
Testing addon level enable/disable
TheDuckCow Jun 6, 2024
d092ddd
Disabling some prints and letting runner do running
TheDuckCow Jun 6, 2024
e0fca0a
Print cleanup and checking output, plus allow more tests
TheDuckCow Jun 6, 2024
0783646
More print debug statements
TheDuckCow Jun 8, 2024
9659b80
Trying to preemptively rename the json file before tests run
TheDuckCow Jun 8, 2024
1ee6946
More print debugs
TheDuckCow Jun 8, 2024
5543e57
Moving the last prints into the actually relevant block
TheDuckCow Jun 8, 2024
163d813
Switching to checking a single test to debug further
TheDuckCow Jun 8, 2024
86c69bf
You know the drill. Plus a typo fix
TheDuckCow Jun 8, 2024
26ee253
Fixed cat command
TheDuckCow Jun 8, 2024
0f587e2
Doing tail to really check if the json is messed up
TheDuckCow Jun 8, 2024
c0f717f
Force overwrite to use checked in json
TheDuckCow Jun 8, 2024
5165b81
Attempt to run all tests
TheDuckCow Jun 8, 2024
e9706d5
One of the rig files crashes it, so trying different tests first.
TheDuckCow Jun 8, 2024
a4151a0
Checking the sample resource blend and trying a git lfs pull
TheDuckCow Jun 8, 2024
31edccb
Adding the LFS part
TheDuckCow Jun 8, 2024
6233efb
Change order
TheDuckCow Jun 8, 2024
a45abd5
With git lfs working, trying the whole thing again
TheDuckCow Jun 8, 2024
ac97e53
Moved location of the git lfs pull
TheDuckCow Jun 8, 2024
162a896
Fixed the download
TheDuckCow Jun 8, 2024
a00fbba
Updating the reference
TheDuckCow Jun 8, 2024
de57abc
Output results in another steps, as outputs might be truncated.
TheDuckCow Jun 8, 2024
c5634a1
Cleaning up all the debug prints
TheDuckCow Jun 8, 2024
3231fb7
Reducing diff size
TheDuckCow Jun 8, 2024
6e22a99
Workflow cleanup
TheDuckCow Jun 8, 2024
9aeeaba
Merge pull request #584 from Moo-Ack-Productions/575-automatically-ru…
TheDuckCow Jun 8, 2024
0c94c03
Merge pull request #585 from Moo-Ack-Productions/sys-stdout-reconfigu…
StandingPadAnimations Jun 8, 2024
f6ea598
Updated the test script for obj importing in 4.0+ and expanded gitignore
TheDuckCow Jun 9, 2024
272df32
Merge pull request #586 from Moo-Ack-Productions/eevee-next-enable
StandingPadAnimations Jun 9, 2024
16c171d
Merge pull request #587 from Moo-Ack-Productions/fix-obj-enabling-test
StandingPadAnimations Jun 9, 2024
cb347b2
Merge remote-tracking branch 'origin/dev' into common-mc-obj-v1
StandingPadAnimations Jun 9, 2024
ddb92f7
fix: Parent empty to all OBJs
StandingPadAnimations Jun 9, 2024
b5ea9e8
Updated several partial migrations to use pathlib, fixes some tests
TheDuckCow Jun 9, 2024
0d65ffd
Moving the added empty to the same collection as the rest of the world
TheDuckCow Jun 9, 2024
27676ae
Merge branch 'dev' into mcprep-rc
StandingPadAnimations Jun 17, 2024
d9302bf
rc-files: Update resources link
StandingPadAnimations Jun 17, 2024
ec42e9c
rc-files: Updated bl_info patch to 3.6 RC-2
StandingPadAnimations Jun 17, 2024
9106447
docs: Add info on applying patches
StandingPadAnimations Jun 17, 2024
ea2a26d
rc-files: Add TODO for auto fetching the latest tag
StandingPadAnimations Jun 17, 2024
0493a2b
Merge pull request #588 from Moo-Ack-Productions/mcprep-rc
StandingPadAnimations Jun 17, 2024
0afc1c9
Added new test world save and exports from jmc2obj and mineways
TheDuckCow Jun 25, 2024
23d4fa4
Fix obj file header parsing from being cleared and some pep8 cleanup
TheDuckCow Jun 25, 2024
1fec0da
refactor: Remove bv28
StandingPadAnimations Jun 25, 2024
f678b9f
style: set MCprepEnv.material_sync_cache to typing.List
StandingPadAnimations Jun 25, 2024
ef36932
Merge branch 'dev' into common-mc-obj-v1
StandingPadAnimations Jun 28, 2024
c2269b0
fix: Add filepath to "File not found" error
StandingPadAnimations Jun 28, 2024
4e664ee
test: Fix test_convert_mtl_simple with convert_mtl return types
StandingPadAnimations Jun 29, 2024
2b4418f
fix: Don't disable textureswap with WorldExporter.Unknown
StandingPadAnimations Jun 29, 2024
e61770d
test: Restrict test action to changes in MCprep_addon
StandingPadAnimations Jun 30, 2024
1b38d08
style: Return bool for convert_mtl instead of None
StandingPadAnimations Jul 2, 2024
f141844
fix: Add Khronos PBR Neutral and AgX to natively supported spaces
StandingPadAnimations Jul 2, 2024
967f71c
Merge pull request #595 from Moo-Ack-Productions/StandingPadAnimation…
StandingPadAnimations Jul 4, 2024
6f2c226
Resolve 2x tests with more consistent use of world WorldExporter
TheDuckCow Jul 6, 2024
3a30cfe
revert: Add nuance back to get_exporter return value
StandingPadAnimations Jul 6, 2024
acec9ea
Fixing the mapping test code to use the generalize functions.
TheDuckCow Jul 7, 2024
a0a2f29
rc-files: Update patches for MCprep 3.6 RC-3
StandingPadAnimations Jul 7, 2024
53878d0
Merge pull request #555 from Moo-Ack-Productions/common-mc-obj-v1
StandingPadAnimations Jul 7, 2024
4cdcf9f
Adding a missing filenames test and (commented out solution)
TheDuckCow Jul 20, 2024
ce60720
Un-commenting the fix which enables Find Missing to work correctly.
TheDuckCow Jul 20, 2024
7b4b690
Added clarifying comment and fixed spelling
TheDuckCow Jul 21, 2024
575c93f
Merge pull request #603 from Moo-Ack-Productions/601-outstanding-uat-…
TheDuckCow Jul 21, 2024
9e7dd1e
Updating image to show Warden is included
TheDuckCow Jul 30, 2024
69e367a
Merge pull request #610 from Moo-Ack-Productions/570-update-the-inclu…
StandingPadAnimations Aug 5, 2024
5614d6a
Improved error message when prepping only mats with missing image paths.
TheDuckCow Aug 5, 2024
a5d816d
Merge pull request #611 from Moo-Ack-Productions/601-improved-error-h…
TheDuckCow Aug 5, 2024
de8bd97
Up-version for 3.6.0
TheDuckCow Aug 5, 2024
9596255
Merge branch 'master' into dev
TheDuckCow Aug 5, 2024
2fb7e9e
Fixing typing which was breaking blender 2.90 and 2.80 builds
TheDuckCow Aug 7, 2024
cb4f737
Merge pull request #614 from Moo-Ack-Productions/generalize-typing-co…
TheDuckCow Aug 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.mtl filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.blend filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
88 changes: 88 additions & 0 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Run tests

on:
workflow_dispatch:
inputs:
blender_versions:
description: 'Blender version(s)'
required: false
default: '["4.1.1"]'
type: choice
options:
- '["4.1.1", "2.90.1", "3.6.5", "2.90.1", "2.28.3"]'
- '["4.1.1"]'
- '["3.6.5"]'
- '["2.90.1"]'
- '["2.28.3"]'
pull_request:
types: [opened, reopened, synchronize] # drop synchronize not run per commit
branches:
- dev
- master
paths:
- 'MCprep_addon/**'


#run-name: Test on ${{ inputs.blender_versions || true && "4.1.1" }}
run-name: Test on ${{ inputs.blender_versions }}

jobs:
test:
name: Test Blender
runs-on: ubuntu-latest
strategy:
matrix:
blender-version: ${{ github.event.inputs.blender_versions && fromJSON(github.event.inputs.blender_versions) || fromJSON('["4.1.1"]') }}
steps:
- uses: actions/checkout@v4
- run: |
echo "Running with blender: $BVERSION"
echo "event name is:" ${{ github.event_name }}
echo "event type is:" ${{ github.event.action }}
env:
BVERSION: ${{ matrix.blender-version }}
- name: Set up Python v3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Pip installs
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade blender-downloader
python -m pip install --upgrade -r requirements.txt
- name: Cache Blender ${{ matrix.blender-version }}
uses: actions/cache@v4
id: cache-blender
with:
path: |
blender-*
blender_execs.txt
key: ${{ runner.os }}-${{ matrix.blender-version }}
- name: Download Blender ${{ matrix.blender-version }}
if: steps.cache-blender.outputs.cache-hit != 'true'
id: download-blender
run: |
printf "%s" "$(blender-downloader \
${{ matrix.blender-version }} --extract --remove-compressed \
--quiet --print-blender-executable)" > blender_execs.txt
- name: Download assets
if: always()
run: |
# TODO: use git describe --tags or equivalent to automatically get latest stable.
wget -nv "https://github.com/Moo-Ack-Productions/MCprep/releases/download/3.5.3/MCprep_addon_3.5.3.zip"
git lfs pull
mkdir MCprep_stable_release
unzip -qq ./MCprep_addon_*.zip -d MCprep_stable_release
# Copy the checked-in data json to override the wget version
mv ./MCprep_addon/MCprep_resources/mcprep_data_update.json _tmp.json
mv -f ./MCprep_stable_release/MCprep_addon/MCprep_resources/** ./MCprep_addon/MCprep_resources
mv -f _tmp.json ./MCprep_addon/MCprep_resources/mcprep_data_update.json
echo "Prepare for install by creating addons folder"
mkdir -p /home/runner/.config/blender/4.1/scripts/addons
echo $(ls /home/runner/.config/blender/4.1/scripts/addons)
echo $(ls /home/runner/.config/blender/4.1/scripts/addons/MCprep_addon/MCprep_resources)
- name: Run tests
run: |
python run_tests.py
- name: Output results
run: cat test_results.csv
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.DS_Store
*.blend
*.mo
__pycache__
.mypy_cache
MCprep_addon/mcprep_addon_tracker.json
MCprep_addon/mcprep_addon_updater/MCprep_addon_updater_status.json
blender_execs.txt
Expand All @@ -13,7 +15,8 @@ mcprep_venv_*
.cache
.python-version
venv/
MCprep_addon/MCprep_resources/
.venv/
*.sublime-*
MCprep_addon/import_bridge/conf
MCprep_addon/import_bridge/nbt
MCprep_addon/MCprep_resources/
23 changes: 19 additions & 4 deletions BlenderChanges.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
This list contains all deprecations and removals in every Blender version starting with Blender 3.0. Since Blender 4.0's breaking changes invoked the want for a list of all deprecations and changes, this list is public for addon developers to use.

Note that not all deprecations are listed, just the ones that may affect MCprep or changes that developers should be aware of in general, so please refer to the wiki entries for each version for more information.
Note that not all deprecations are listed, just the ones that may affect MCprep or changes that developers should be aware of in general, so please refer to the wiki entries for each version for more information. In addition, for simplicity, this page will only document changes in stable releases of Blender, unless a change has been found in a development version of Blender that needs to be addressed.

_For Developers_: The use of any deprecated feature is an automatic bug. Such features should be wrapped around if statements for backwards compatibility if absolutely necesary in older versions.

_For MCprep maintainers_: Any use of a deprecated feature in a pull request should be questioned. If the feature is needed in older versions, then remind developers to use `min_bv`, `bv28` ([Deprecated in MCprep 3.5](https://github.com/TheDuckCow/MCprep/pull/401)), or `bv30`, whichever is more appropriate.

In ascending order:

# [Blender 3.0](https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Python_API)
## Deprecations
None that concern MCprep.
Expand Down Expand Up @@ -93,11 +95,11 @@ None that concern MCprep.
- `data` remains emulated, but with a performance penalty

# [Blender 3.6](https://wiki.blender.org/wiki/Reference/Release_Notes/3.6/Python_API)
Nothing that concerns MCprep
None that concern MCprep.

# [Blender 4.0 (IN DEVELOPMENT)](https://wiki.blender.org/wiki/Reference/Release_Notes/4.0/Python_API)
# [Blender 4.0](https://wiki.blender.org/wiki/Reference/Release_Notes/4.0/Python_API)
## Deprecated
Nothing that concerned MCprep for now.
None that concern MCprep.

## Breaking Changes
- Glossy BSDF and Anisotrophic BSDF nodes have been merged.
Expand All @@ -113,3 +115,16 @@ Nothing that concerned MCprep for now.
- Coat -> Coat Weight
- Sheen -> Sheen Weight
- Emission -> Emission Color
- Possible breakage of rig backwards compatibility (unconfirmed)

# [Blender 4.1](https://wiki.blender.org/wiki/Reference/Release_Notes/4.1/Python_API)
## Deprecated
None that concern MCprep.

## Breaking Changes/Additions
- Python has been upgraded to Python 3.11
- VFX Reference Platform 2024 support has been added
- Layout panels to reduce boilerplate for submenus
- `displacement_method` is under `bpy.types.Material` now
- Possible breakage of rig backwards compatibility (unconfirmed)

50 changes: 48 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,24 @@ As a quick start:
# Highly recommended, create a local virtual environment (could also define globally)
python3 -m pip install --user virtualenv

python3 -m pip install --upgrade pip # Install/upgrade pip
python3 -m venv ./venv # Add a local virtual env called `venv`
python3 -m pip install --upgrade pip # Install/upgrade pip

# Activate that environment
## On windows:
.\venv\Scripts\activate
## On Mac/linux:
source venv/bin/activate

pip install -r requirements.txt

# Now with the env active, do the pip install (or upgrade)
pip install --upgrade bpy-addon-build

# Finally, you can compile MCprep using:
bpy-addon-build --during-build dev # Use dev to use non-prod related resources and tracking.
bab -b dev # Use dev to use non-prod related resources and tracking.
bab -b dev translate # Dev, with translations
bab -b translate # For production
```

Moving forward, you can now build the addon for all intended supported versions using: `bpy-addon-build -b dev`
Expand Down Expand Up @@ -214,6 +218,48 @@ Add this to a file called .gitmessage, and then execute the following command:

To use for each commit, you can use `git config --local commit.verbose true` to tell Git to perform a verbose commit all the time for just the MCprep repo.


## Signing Off Commits
Signing off of all commits, although not required, is good practice to certify the origin of a change. When you sign off of a commit, you certify that the commit was made in line with the Developer's Certificate of Origin:

> Developer's Certificate of Origin 1.1
> By making a contribution to this project, I certify that:
>
> a. The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or \
> b. The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or \
> c. The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. \
> d I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.

If indeed the change was made in line with the Developer's Certificate of Origin, add the following at the end of the commit:
```
Signed-off-by: Random J Developer <[email protected]>
```

**This much be your real name and a working email address.**

This can also be added with the `--signoff flag`:
```
$ git commit --signoff -m "Commit message"
```

If the change was given to you by someone else, and you have permission to contribute it here, that change must be signed off by the person who gave the change to you, and anyone before that (basically a chain of sign offs). Example:
```
<commit message and summery by John Doe, who recieved the change from Jane Doe>

Signed-off-by: John Doe <[email protected]>
Signed-off-by: Jane Doe <[email protected]>
```

If multiple authors were involved in writing the change, then `Co-developed-by` must be present for both you and any other authors involved in the change. As an example with 2 authors:
```
<commit message and summery>

Co-developed-by: John Doe <[email protected]>
Signed-off-by: John Doe <[email protected]>
Co-developed-by: Jane Doe <[email protected]>
Signed-off-by: Jane Doe <[email protected]>
```

## Dependencies
If you're using an IDE, it's recommened to install `bpy` as a Python module. In our experience, the [fake-bpy package](https://github.com/nutti/fake-bpy-module) seems to be the best.

Expand Down
32 changes: 32 additions & 0 deletions LICENSE-3RD-PARTY.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
-----------------------------------------------------------------------------
The BSD 3-Clause License

Applies to:
commonmcobj_parser.py Copyright (c) 2024, Mahid Sheikh

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-----------------------------------------------------------------------------
Loading