-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
BUG: Global/Bake Output presets cannot store batch names with mixed caps #90
Comments
Preset saving works correctly, I can see that a mixed-caps batch name was written down in a bake output preset example below generated in 2.6.2: import bpy
bm_item = bpy.context.scene.bm_table_of_objects[bpy.context.scene.bm_props.global_active_index]
bm_item.bake_save_internal = True
bm_item.bake_output_filepath = ''
bm_item.bake_create_subfolder = False
bm_item.bake_subfolder_name = 'Maps'
bm_item.bake_batchname = 'T_$materialname_$mapname'
bm_item.bake_batchname_use_caps = False
bm_item.bake_create_material = False
bm_item.bake_assign_modifiers = True
bm_item.bake_device = 'CPU'
bm_item.bake_view_from = 'ABOVE_SURFACE'
bm_item.bake_hide_when_inactive = True
bm_item.bake_vg_index = 0 |
Interesting. The batch name value gets transformed to lowercase exactly at BakeMaster-Blender-Addon/presets.py Line 1548 in acf0b5b
With a small debug test, the following sample: print(bpy.data.scenes["Scene"].bm_table_of_objects[1].bake_batchname)
bpy.utils.execfile(filepath)
print(bpy.data.scenes["Scene"].bm_table_of_objects[1].bake_batchname) Produces:
|
There is nothing wrong with batchname's update. |
The reason for batch name turning to lowercase on preset load is because |
My solution is to update |
… to False when not batchname.isupper() on batchname udpate related: #90
This bug report is:
Describe the bug
mike_fr reported on Discord:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Mixed cap letters should be allowed in BakeMaster's batch name. The batch name itself does, but presets miss it.
Screenshots
Not relevant for now.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: