Skip to content

Fix: Custom properties are deleted even if the option is off#298

Closed
cl3m3c7 wants to merge 9 commits intoMustard2:masterfrom
cl3m3c7:#285
Closed

Fix: Custom properties are deleted even if the option is off#298
cl3m3c7 wants to merge 9 commits intoMustard2:masterfrom
cl3m3c7:#285

Conversation

@cl3m3c7
Copy link
Copy Markdown
Collaborator

@cl3m3c7 cl3m3c7 commented Feb 3, 2026

Fixes #285

- change condition not x in to x not in
- fix typos
@Mustard2
Copy link
Copy Markdown
Owner

Mustard2 commented Feb 3, 2026

Third time might be the one. :D

I got the old version to check, and it did have a HUGE issue: it also deleted drivers unrelated to the UI (like corrective shape keys manually set, not the Daz ones). For this new PR, did you use the same driver check and delete functions? Because if yes, we might get the same issue also in this version.

If you have an email or something, I can send you the video with the issue.

@cl3m3c7
Copy link
Copy Markdown
Collaborator Author

cl3m3c7 commented Feb 3, 2026

you can put the video here! you can zoom out NSFW parts if there are any or do you have other concerns (copyright materials ...)?

if not possible, you can send me a message in twitter (@cl3m3c7)

@Mustard2
Copy link
Copy Markdown
Owner

Mustard2 commented Feb 4, 2026

Both the reasons. I'll send it on twitter

@Mustard2
Copy link
Copy Markdown
Owner

Mustard2 commented Feb 4, 2026

Ah I can't send you messages. :(

…ard2#290)

* Refine mask modifier name matching to use endswith

Updated mask modifier checks in both ops_complete_outfit_visibility.py and ops_visibility.py to use mod.name.endswith(obj.name) instead of checking for substring presence.

This change ensures more precise matching of modifier names to object names.

* Add customizable date format for model version

Introduces options to select the date format for the model version, including new properties for date format and manual date entry. Updates the configuration logic to use the selected format and handle invalid dates gracefully. UI is updated to allow users to choose the date format and set the date vector if enabled.

* Apply suggestions from code review

* Update modifier name check to use endswith method

* Refactor outfit visibility operator in Blender

* Apply suggestions from code review

* Apply suggestion from @Mustard2

---------

Co-authored-by: Mustard <60780948+Mustard2@users.noreply.github.com>
@Mustard2
Copy link
Copy Markdown
Owner

I just had the time to try this fix. I cloned the branch here, and trying the same procedure as in #285, I get the same wrong behavior unfortunately. :(

- Enhancement: The Simplify tool has been completely rewritten to support new features and solve some longstanding issues (Mustard2#300 Mustard2#304).
- Feature (Mustard2#149 Mustard2#187): Float subtype and step can now be set in the custom property settings.
- Enhancement (Mustard2#290): The Version Date can now be overridden and customized with different date formats (thanks to @Ckang3D).
- Fix: An error with morph presets when using boolean values might occur.
- Fix (Mustard2#290): Fixed an issue on the outfit Mask modifiers that might be enabled/disabled erroneously if outfits with names that are substrings of others are used (thanks to @Ckang3D).
@cl3m3c7
Copy link
Copy Markdown
Collaborator Author

cl3m3c7 commented Mar 13, 2026

in my testing it works, could you ask him to test and see if it fixed it for him?
are you sure you did use my patch?
one of use is wrong, with need a third party 😅
or you could ask anyone else not the same person!

Mustard2 and others added 4 commits March 13, 2026 23:11
- Fix: Fix error when using the Custom Properties settings with Color properties.
- change condition not x in to x not in
- fix typos
@Mustard2
Copy link
Copy Markdown
Owner

Uhm ok let me retry then :D

@Mustard2
Copy link
Copy Markdown
Owner

Mustard2 commented Mar 21, 2026

<redacted>

Sorry again for the NSFW, I'm trying as the user reported (we remove everything after the things are fixed).

I downloaded the branch here, installed and removed all other MustardUI addon I had, restarted Blender (and checked that your version is indeed the one loaded), and tried exactly the same steps as Moku reported.

@Mustard2
Copy link
Copy Markdown
Owner

Mustard2 commented Mar 21, 2026

Ok I found the issue here. Essentially some paths have been updated from Blender 4.5 to Blender 5.0

# Before
bpy.data.shape_keys["Key.004"].key_blocks["Up Right"].value
# After
bpy.data.shape_keys["Ashley Body"].key_blocks["Up Right"].value

I am not sure if your fix can detect also this behaviour, that is the path is wrong as saved in the MustardUI custom property.

@cl3m3c7
Copy link
Copy Markdown
Collaborator Author

cl3m3c7 commented Mar 21, 2026

Outfit custom properties are deleted even if the option is off

that's the thing which should be tested. if look at the end of the video in the original issue, he checked the driver's property, it was red (deleted).

the reset in the value was expected, because there is the default value reset when cleaning up.

did you get what I am trying to say? not sure if I phrase it correctly 😅

@Mustard2
Copy link
Copy Markdown
Owner

Mustard2 commented Mar 21, 2026

Yes but then with your fix it shouldn't delete those custom properties if it's working. The driver becomes red exactly because the custom properties are deleted even if the fix should in principle prevent it.
Or am I missing something?

This is what happens with this current branch.

Screenshot 2026-03-21 at 17 10 37

@Mustard2
Copy link
Copy Markdown
Owner

In the meanwhile I also added a check for the driver path issue.

Screenshot 2026-03-21 at 16 45 21 Screenshot 2026-03-21 at 16 48 02

@Mustard2
Copy link
Copy Markdown
Owner

@cl3m3c7 I created a co-authored commit to introduce this directly in version 2026.4.0, so it will also appear as you contributed with those lines too :)

I added an option to decide whether to remove or not the custom properties. Talking with Moku, he set the wrong default value and changed the expression of the driver, so it was a combination of different stuffs that created the issue. Not something that we could really have any control on tbh.

@Mustard2 Mustard2 mentioned this pull request Mar 21, 2026
@cl3m3c7
Copy link
Copy Markdown
Collaborator Author

cl3m3c7 commented Mar 21, 2026

wait, I will record something to show you what I meant

@Mustard2
Copy link
Copy Markdown
Owner

In the meanwhile I added you as collaborator, so I can assign you to the different MR. :)

When you have time, accept the invitation.

@cl3m3c7
Copy link
Copy Markdown
Collaborator Author

cl3m3c7 commented Mar 21, 2026

I will send it in twitter

@Mustard2
Copy link
Copy Markdown
Owner

Ok got it, it's the same behavior I got. Should be fine for now. :)

@cl3m3c7
Copy link
Copy Markdown
Collaborator Author

cl3m3c7 commented Mar 21, 2026

does is solve the issue or I misunderstood the issue again? 😟

@Mustard2
Copy link
Copy Markdown
Owner

No this time I think everything is fine, I also wasn't sure about the issue. This was a rare combination of different stuffs going wrong at the same time, plus user custom tweaks. :D

@cl3m3c7
Copy link
Copy Markdown
Collaborator Author

cl3m3c7 commented Mar 21, 2026

ok 👍🏼

@cl3m3c7
Copy link
Copy Markdown
Collaborator Author

cl3m3c7 commented Mar 21, 2026

this needs to be rebased on top of the latest changes before merge

@Mustard2
Copy link
Copy Markdown
Owner

I already imported all the fixes manually, since I was also making some tests myself.

I think it's easier to close this and open a new one with just the ruff changes, otherwise it's also difficult to review due to the linting noise.

@Mustard2 Mustard2 closed this Mar 23, 2026
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.

Clean tool: Outfit custom properties are deleted even if the option is off

3 participants